From: Evan Cheng Date: Sat, 11 Mar 2006 00:13:10 +0000 (+0000) Subject: Doh! X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2352ce9cb672c0c27aad23389c01df76ec09c1ef;p=oota-llvm.git Doh! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26705 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 28ca2a416d9..55bc4aef04c 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -1740,7 +1740,7 @@ std::string Constant::getStringValue(bool Chop, unsigned Offset) { } } else if (Constant *C = dyn_cast(this)) { if (GlobalValue *GV = dyn_cast(C)) - return GV->getStringValue(Offset); + return GV->getStringValue(Chop, Offset); else if (ConstantExpr *CE = dyn_cast(C)) { if (CE->getOpcode() == Instruction::GetElementPtr) { // Turn a gep into the specified offset. @@ -1748,7 +1748,7 @@ std::string Constant::getStringValue(bool Chop, unsigned Offset) { cast(CE->getOperand(1))->isNullValue() && isa(CE->getOperand(2))) { Offset += cast(CE->getOperand(2))->getRawValue(); - return CE->getOperand(0)->getStringValue(Offset); + return CE->getOperand(0)->getStringValue(Chop, Offset); } } }