Remove usage of ConstantPointer

llvm-svn: 10051
This commit is contained in:
Chris Lattner 2003-11-17 17:28:29 +00:00
parent c96e96b26d
commit ea25538936
1 changed files with 1 additions and 3 deletions

View File

@ -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);