aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/Writer.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-10-26 06:17:40 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-10-26 06:17:40 +0000
commit72ddc211e97aedcce0cd695bb6d7bf320b4361ac (patch)
tree0e731f8cf2db77e7ce2f1f54b342162d803e5983 /lib/Target/CBackend/Writer.cpp
parent1628cec4d7fce310d9cde0bcc73997e5a71692c4 (diff)
Enclose a case in { and } so that the pickier compilers don't complain.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31196 91177308-0d34-0410-b5e6-96231b3b80d8
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: "