projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41495a2
)
Remove usage of ConstantPointer
author
Chris Lattner
<sabre@nondot.org>
Mon, 17 Nov 2003 17:28:29 +0000
(17:28 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 17 Nov 2003 17:28:29 +0000
(17:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10051
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bytecode/Writer/ConstantWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/Bytecode/Writer/ConstantWriter.cpp
b/lib/Bytecode/Writer/ConstantWriter.cpp
index 303672d166f664511583cdf1f83ffd8280da8b96..5813ea296d82b808d24c6ad9493a6b285aacd572 100644
(file)
--- a/
lib/Bytecode/Writer/ConstantWriter.cpp
+++ b/
lib/Bytecode/Writer/ConstantWriter.cpp
@@
-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);