mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Fixes for PR114: Thanks to Reid Spencer!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10029 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -58,11 +58,11 @@ public:
|
||||
/// getIncomingBlock - Return incoming basic block #x
|
||||
BasicBlock *getIncomingBlock(unsigned i) const {
|
||||
assert(i*2+1 < Operands.size() && "Invalid value number!");
|
||||
return (BasicBlock*)Operands[i*2+1].get();
|
||||
return reinterpret_cast<BasicBlock*>(Operands[i*2+1].get());
|
||||
}
|
||||
void setIncomingBlock(unsigned i, BasicBlock *BB) {
|
||||
assert(i*2+1 < Operands.size() && "Invalid value number!");
|
||||
Operands[i*2+1] = (Value*)BB;
|
||||
Operands[i*2+1] = reinterpret_cast<Value*>(BB);
|
||||
}
|
||||
unsigned getOperandNumForIncomingBlock(unsigned i) {
|
||||
return i*2+1;
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
assert(getType() == D->getType() &&
|
||||
"All operands to PHI node must be the same type as the PHI node!");
|
||||
Operands.push_back(Use(D, this));
|
||||
Operands.push_back(Use((Value*)BB, this));
|
||||
Operands.push_back(Use(reinterpret_cast<Value*>(BB), this));
|
||||
}
|
||||
|
||||
/// removeIncomingValue - Remove an incoming value. This is useful if a
|
||||
|
Reference in New Issue
Block a user