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
This commit is contained in:
Reid Spencer 2006-10-26 06:17:40 +00:00
parent 1628cec4d7
commit 72ddc211e9
2 changed files with 4 additions and 0 deletions

View 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: "

View 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: "