aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/Writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r--lib/Target/CBackend/Writer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp
index eb7b4e3813..cef1ba621a 100644
--- a/lib/Target/CBackend/Writer.cpp
+++ b/lib/Target/CBackend/Writer.cpp
@@ -605,6 +605,7 @@ void CWriter::printConstant(Constant *CPV) {
case Instruction::SetGE:
case Instruction::Shl:
case Instruction::Shr:
+ {
Out << '(';
bool NeedsClosingParens = printConstExprCast(CE);
printConstantWithCast(CE->getOperand(0), CE->getOpcode());
@@ -634,6 +635,7 @@ void CWriter::printConstant(Constant *CPV) {
Out << "))";
Out << ')';
return;
+ }
default:
std::cerr << "CWriter Error: Unhandled constant expression: "