[llvm-commits] [llvm] r49600 - in /llvm/branches/ggreif/use-diet/lib/Bitcode/Reader: BitcodeReader.cpp BitcodeReader.h
Gabor Greif
ggreif at gmail.com
Sat Apr 12 17:53:57 PDT 2008
Author: ggreif
Date: Sat Apr 12 19:53:57 2008
New Revision: 49600
URL: http://llvm.org/viewvc/llvm-project?rev=49600&view=rev
Log:
restore old behaviour
Modified:
llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h
Modified: llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp?rev=49600&r1=49599&r2=49600&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp Sat Apr 12 19:53:57 2008
@@ -169,7 +169,7 @@
// Insert a bunch of null values.
resize(Idx * 2 + 1);
// OperandList = &Uses[0];
-// NumOperands = Idx+1;
+ NumOperands = Idx+1;
}
if (Value *V = OperandList[Idx]) {
@@ -188,7 +188,7 @@
// Insert a bunch of null values.
resize(Idx * 2 + 1);
// OperandList = &Uses[0];
-// NumOperands = Idx+1;
+ NumOperands = Idx+1;
}
if (Value *V = OperandList[Idx]) {
Modified: llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h?rev=49600&r1=49599&r2=49600&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h (original)
+++ llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h Sat Apr 12 19:53:57 2008
@@ -48,7 +48,7 @@
}
void clear() {
- dropHungoffUses(OperandList);
+ if (OperandList) dropHungoffUses(OperandList);
}
Value *operator[](unsigned i) const { return getOperand(i); }
More information about the llvm-commits
mailing list