mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Remove usage of ConstantPointer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10051 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41495a21f9
commit
02071d08c1
@ -175,9 +175,7 @@ bool BytecodeWriter::outputConstant(const Constant *CPV) {
|
||||
}
|
||||
|
||||
case Type::PointerTyID: {
|
||||
const ConstantPointer *CPP = cast<ConstantPointer>(CPV);
|
||||
assert(!isa<ConstantPointerNull>(CPP) && "Null should be already emitted!");
|
||||
const ConstantPointerRef *CPR = cast<ConstantPointerRef>(CPP);
|
||||
const ConstantPointerRef *CPR = cast<ConstantPointerRef>(CPV);
|
||||
int Slot = Table.getSlot((Value*)CPR->getValue());
|
||||
assert(Slot != -1 && "Global used but not available!!");
|
||||
output_vbr((unsigned)Slot, Out);
|
||||
|
Loading…
Reference in New Issue
Block a user