Changes in directory llvm/lib/VMCore:
Constants.cpp updated: 1.147 -> 1.148 --- Log message: Doh! --- Diffs of the changes: (+2 -2) Constants.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/VMCore/Constants.cpp diff -u llvm/lib/VMCore/Constants.cpp:1.147 llvm/lib/VMCore/Constants.cpp:1.148 --- llvm/lib/VMCore/Constants.cpp:1.147 Fri Mar 10 17:52:03 2006 +++ llvm/lib/VMCore/Constants.cpp Fri Mar 10 18:13:10 2006 @@ -1740,7 +1740,7 @@ } } else if (Constant *C = dyn_cast<Constant>(this)) { if (GlobalValue *GV = dyn_cast<GlobalValue>(C)) - return GV->getStringValue(Offset); + return GV->getStringValue(Chop, Offset); else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { if (CE->getOpcode() == Instruction::GetElementPtr) { // Turn a gep into the specified offset. @@ -1748,7 +1748,7 @@ cast<Constant>(CE->getOperand(1))->isNullValue() && isa<ConstantInt>(CE->getOperand(2))) { Offset += cast<ConstantInt>(CE->getOperand(2))->getRawValue(); - return CE->getOperand(0)->getStringValue(Offset); + return CE->getOperand(0)->getStringValue(Chop, Offset); } } } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits