forked from OSchip/llvm-project
Remove extraneous parents around constants when using a constant expr cast.
llvm-svn: 24357
This commit is contained in:
parent
b720e2c29f
commit
bba9c372c1
|
@ -118,9 +118,7 @@ void AsmPrinter::emitConstantValueOnly(const Constant *CV) {
|
||||||
|| (((TD.getTypeSize(Ty) >= TD.getTypeSize(OpTy))
|
|| (((TD.getTypeSize(Ty) >= TD.getTypeSize(OpTy))
|
||||||
&& OpTy->isLosslesslyConvertibleTo(Ty))))
|
&& OpTy->isLosslesslyConvertibleTo(Ty))))
|
||||||
&& "FIXME: Don't yet support this kind of constant cast expr");
|
&& "FIXME: Don't yet support this kind of constant cast expr");
|
||||||
O << "(";
|
|
||||||
emitConstantValueOnly(Op);
|
emitConstantValueOnly(Op);
|
||||||
O << ")";
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Instruction::Add:
|
case Instruction::Add:
|
||||||
|
|
Loading…
Reference in New Issue