From: Reid Spencer Date: Thu, 26 Oct 2006 06:17:40 +0000 (+0000) Subject: Enclose a case in { and } so that the pickier compilers don't complain. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=72ddc211e97aedcce0cd695bb6d7bf320b4361ac;p=oota-llvm.git 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 --- diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index eb7b4e3813d..cef1ba621ac 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.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: " diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index eb7b4e3813d..cef1ba621ac 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: "