Enclose a case in { and } so that the pickier compilers don't complain.
authorReid Spencer <rspencer@reidspencer.com>
Thu, 26 Oct 2006 06:17:40 +0000 (06:17 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 26 Oct 2006 06:17:40 +0000 (06:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31196 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index eb7b4e3813d97f3097cb981acfaf128d865090ba..cef1ba621ac4619043126a3d4bfc7c9f071102be 100644 (file)
@@ -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: "
index eb7b4e3813d97f3097cb981acfaf128d865090ba..cef1ba621ac4619043126a3d4bfc7c9f071102be 100644 (file)
@@ -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: "