forked from OSchip/llvm-project
Add support for select constant expressions to the CBE, fixing SIOD
llvm-svn: 12589
This commit is contained in:
parent
bc7e35b3b1
commit
b28dd11e33
|
@ -388,6 +388,15 @@ void CWriter::printConstant(Constant *CPV) {
|
|||
gep_type_end(CPV));
|
||||
Out << "))";
|
||||
return;
|
||||
case Instruction::Select:
|
||||
Out << "(";
|
||||
printConstant(CE->getOperand(0));
|
||||
Out << "?";
|
||||
printConstant(CE->getOperand(1));
|
||||
Out << ":";
|
||||
printConstant(CE->getOperand(2));
|
||||
Out << ")";
|
||||
return;
|
||||
case Instruction::Add:
|
||||
case Instruction::Sub:
|
||||
case Instruction::Mul:
|
||||
|
|
Loading…
Reference in New Issue