aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-15 00:03:16 +0000
committerChris Lattner <sabre@nondot.org>2005-11-15 00:03:16 +0000
commit27ecef510f785bc9345e6ddf058cd4f45e05bc4f (patch)
treeac28e46127860e7f37b330317ac63291e55cf6f1 /lib/CodeGen/AsmPrinter.cpp
parent94f3d1af5fe09f14e45c68a6a8c59b4d681c64a0 (diff)
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
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index a6028e43de..d81846bd7a 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -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: