mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-28 06:58:19 +00:00
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:
parent
1628cec4d7
commit
72ddc211e9
@ -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: "
|
||||
|
@ -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: "
|
||||
|
Loading…
Reference in New Issue
Block a user