Remove extraneous parents around constants when using a constant expr cast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-11-15 00:03:16 +00:00
parent 94f3d1af5f
commit 27ecef510f

View File

@ -118,9 +118,7 @@ void AsmPrinter::emitConstantValueOnly(const Constant *CV) {
|| (((TD.getTypeSize(Ty) >= TD.getTypeSize(OpTy))
&& OpTy->isLosslesslyConvertibleTo(Ty))))
&& "FIXME: Don't yet support this kind of constant cast expr");
O << "(";
emitConstantValueOnly(Op);
O << ")";
break;
}
case Instruction::Add: