diff options
author | Chris Lattner <sabre@nondot.org> | 2002-06-05 17:38:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-06-05 17:38:28 +0000 |
commit | a48836b195c71166e195a3e54c4566b78a20c477 (patch) | |
tree | be734ab6b28fed95509fd01df5a882f3a3fc2938 /lib/Bytecode/Reader/InstructionReader.cpp | |
parent | 51727bee39ad77ee7778c3b64b37dee6cd67f0ed (diff) |
Fix constness problems now that the cast operators preserve the constness
of their argument
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/InstructionReader.cpp')
-rw-r--r-- | lib/Bytecode/Reader/InstructionReader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index 9b98d94530..0916b2b876 100644 --- a/lib/Bytecode/Reader/InstructionReader.cpp +++ b/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; |