diff options
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 6aa085bc83..ce86452737 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -733,8 +733,8 @@ namespace { } if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) { Out << "ConstantInt* " << constName << " = ConstantInt::get(APInt(" - << cast<IntegerType>(CI->getType())->getBitWidth() << ", " - << " \"" << CI->getValue().toStringSigned(10) << "\", 10));"; + << cast<IntegerType>(CI->getType())->getBitWidth() << ", \"" + << CI->getValue() << "\", 10));"; } else if (isa<ConstantAggregateZero>(CV)) { Out << "ConstantAggregateZero* " << constName << " = ConstantAggregateZero::get(" << typeName << ");"; |