[llvm-commits] [llvm] r49528 - in /llvm/branches/ggreif/use-diet/lib/Bitcode/Reader: BitcodeReader.cpp BitcodeReader.h
Gabor Greif
ggreif at gmail.com
Fri Apr 11 06:05:15 PDT 2008
Author: ggreif
Date: Fri Apr 11 08:05:14 2008
New Revision: 49528
URL: http://llvm.org/viewvc/llvm-project?rev=49528&view=rev
Log:
squash more bugs
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=49528&r1=49527&r2=49528&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp Fri Apr 11 08:05:14 2008
@@ -159,7 +159,7 @@
New[i] = getOperand(i);
Use *Old = OperandList;
OperandList = New;
- dropHungoffUses(Old);
+ if (Old) dropHungoffUses(Old);
}
}
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=49528&r1=49527&r2=49528&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h (original)
+++ llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h Fri Apr 11 08:05:14 2008
@@ -42,8 +42,8 @@
void resize(unsigned);
void push_back(Value *V) {
resize(NumOperands + 1);
- setOperand(NumOperands, V);
++NumOperands;
+ setOperand(NumOperands - 1, V);
}
void clear() {
More information about the llvm-commits
mailing list