diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-11 00:13:10 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-11 00:13:10 +0000 |
commit | 2352ce9cb672c0c27aad23389c01df76ec09c1ef (patch) | |
tree | 033bd36f150034b69314e507580a4e4f1e2d5a9a | |
parent | 0937103368992af8d3d8032d31a7d152aeae32d5 (diff) |
Doh!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26705 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Constants.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 28ca2a416d..55bc4aef04 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<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 @@ std::string Constant::getStringValue(bool Chop, unsigned Offset) { 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); } } } |