mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 20:33:15 +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: {
|
case Type::PointerTyID: {
|
||||||
const ConstantPointer *CPP = cast<ConstantPointer>(CPV);
|
const ConstantPointerRef *CPR = cast<ConstantPointerRef>(CPV);
|
||||||
assert(!isa<ConstantPointerNull>(CPP) && "Null should be already emitted!");
|
|
||||||
const ConstantPointerRef *CPR = cast<ConstantPointerRef>(CPP);
|
|
||||||
int Slot = Table.getSlot((Value*)CPR->getValue());
|
int Slot = Table.getSlot((Value*)CPR->getValue());
|
||||||
assert(Slot != -1 && "Global used but not available!!");
|
assert(Slot != -1 && "Global used but not available!!");
|
||||||
output_vbr((unsigned)Slot, Out);
|
output_vbr((unsigned)Slot, Out);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user