aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CBackend
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-04 23:43:29 +0000
committerDan Gohman <gohman@apple.com>2009-06-04 23:43:29 +0000
commit9f5f322a032cc22b5375cf698ac58fe7644547c0 (patch)
treeefe7e3aa1209bbd333ccbebb456d6748b3241a92 /lib/Target/CBackend
parent40e233f103f7aa43f99dd6ee24ed8a22d5d1ea38 (diff)
downloadexternal_llvm-9f5f322a032cc22b5375cf698ac58fe7644547c0.zip
external_llvm-9f5f322a032cc22b5375cf698ac58fe7644547c0.tar.gz
external_llvm-9f5f322a032cc22b5375cf698ac58fe7644547c0.tar.bz2
Fix an erroneous check for isFNeg; the FNeg case is handled
a few lines later on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r--lib/Target/CBackend/CBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index ed3ff81..5814d27 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -2600,7 +2600,7 @@ void CWriter::visitBinaryOperator(Instruction &I) {
// If this is a negation operation, print it out as such. For FP, we don't
// want to print "-0.0 - X".
- if (BinaryOperator::isNeg(&I) || BinaryOperator::isFNeg(&I)) {
+ if (BinaryOperator::isNeg(&I)) {
Out << "-(";
writeOperand(BinaryOperator::getNegArgument(cast<BinaryOperator>(&I)));
Out << ")";