Fix indent.
[oota-llvm.git] / lib / VMCore / Constants.cpp
index 28ca2a416d9449dc7ef8d08382a67a8d5b530a3c..55bc4aef04c071a321daf30af15a21c574497afa 100644 (file)
@@ -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);
         }
       }
     }