aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-04-11 09:48:55 +0000
committerJay Foad <jay.foad@gmail.com>2011-04-11 09:48:55 +0000
commit8340d0b6595567375e80466fdcd277d5e190ed98 (patch)
tree98e7def3a2fb1ee36e8e39abc8bb6429d339d2d8 /lib/Bitcode
parent562b84b3aea359d1f918184e355da82bf05eb290 (diff)
downloadexternal_llvm-8340d0b6595567375e80466fdcd277d5e190ed98.zip
external_llvm-8340d0b6595567375e80466fdcd277d5e190ed98.tar.gz
external_llvm-8340d0b6595567375e80466fdcd277d5e190ed98.tar.bz2
Fix or remove code which seemed to think that the operand of a Constant
was always a User. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Writer/ValueEnumerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/ValueEnumerator.cpp b/lib/Bitcode/Writer/ValueEnumerator.cpp
index 05078ca..54404cd 100644
--- a/lib/Bitcode/Writer/ValueEnumerator.cpp
+++ b/lib/Bitcode/Writer/ValueEnumerator.cpp
@@ -423,7 +423,7 @@ void ValueEnumerator::EnumerateOperandType(const Value *V) {
// This constant may have operands, make sure to enumerate the types in
// them.
for (unsigned i = 0, e = C->getNumOperands(); i != e; ++i) {
- const User *Op = C->getOperand(i);
+ const Value *Op = C->getOperand(i);
// Don't enumerate basic blocks here, this happens as operands to
// blockaddress.