summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/InstructionReader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-06-05 17:38:28 +0000
committerChris Lattner <sabre@nondot.org>2002-06-05 17:38:28 +0000
commitb469cf8361014e18457a5e4fb4a81ccf5112d34e (patch)
tree9a05c8e689354b4ea10efcd77ccad15b2446cf4f /llvm/lib/Bytecode/Reader/InstructionReader.cpp
parent8cb1dfbdc959019601027a143457d0b96c2e96e0 (diff)
downloadbcm5719-llvm-b469cf8361014e18457a5e4fb4a81ccf5112d34e.tar.gz
bcm5719-llvm-b469cf8361014e18457a5e4fb4a81ccf5112d34e.zip
Fix constness problems now that the cast operators preserve the constness
of their argument llvm-svn: 2758
Diffstat (limited to 'llvm/lib/Bytecode/Reader/InstructionReader.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/InstructionReader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp
index 9b98d945305..0916b2b876a 100644
--- a/llvm/lib/Bytecode/Reader/InstructionReader.cpp
+++ b/llvm/lib/Bytecode/Reader/InstructionReader.cpp
@@ -228,9 +228,9 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf,
if (M == 0) return failure(true);
// Check to make sure we have a pointer to method type
- PointerType *PTy = dyn_cast<PointerType>(M->getType());
+ const PointerType *PTy = dyn_cast<PointerType>(M->getType());
if (PTy == 0) return failure(true);
- FunctionType *MTy = dyn_cast<FunctionType>(PTy->getElementType());
+ const FunctionType *MTy = dyn_cast<FunctionType>(PTy->getElementType());
if (MTy == 0) return failure(true);
vector<Value *> Params;
@@ -288,9 +288,9 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf,
if (M == 0) return failure(true);
// Check to make sure we have a pointer to method type
- PointerType *PTy = dyn_cast<PointerType>(M->getType());
+ const PointerType *PTy = dyn_cast<PointerType>(M->getType());
if (PTy == 0) return failure(true);
- FunctionType *MTy = dyn_cast<FunctionType>(PTy->getElementType());
+ const FunctionType *MTy = dyn_cast<FunctionType>(PTy->getElementType());
if (MTy == 0) return failure(true);
vector<Value *> Params;
OpenPOWER on IntegriCloud