mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user