From 0159a1ee114f86ef1307f8f598977700fd10d7fe Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Mon, 11 Apr 2011 09:48:55 +0000 Subject: Fix or remove code which seemed to think that the operand of a Constant was always a User. llvm-svn: 129272 --- llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.cpp') diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp index 05078caf5fa..54404cd03aa 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/llvm/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. -- cgit v1.2.3