aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ConstantFolding.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-05-21 14:07:30 +0000
committerGabor Greif <ggreif@gmail.com>2008-05-21 14:07:30 +0000
commit33e456d5f3909e0c7b96e04e5674c25a182da100 (patch)
treeea0df01b43db94544d2ddadc0f53aaf601209e68 /lib/Analysis/ConstantFolding.cpp
parent010ee2d95516fe13a574bce5d682a8f8997ab60b (diff)
suppress gcc3.4.6's <no value returned> warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ConstantFolding.cpp')
-rw-r--r--lib/Analysis/ConstantFolding.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/ConstantFolding.cpp b/lib/Analysis/ConstantFolding.cpp
index 91c745e932..7601aeb2f4 100644
--- a/lib/Analysis/ConstantFolding.cpp
+++ b/lib/Analysis/ConstantFolding.cpp
@@ -602,6 +602,7 @@ static Constant *ConstantFoldFP(double (*NativeFP)(double), double V,
if (Ty == Type::DoubleTy)
return ConstantFP::get(APFloat(V));
assert(0 && "Can only constant fold float/double");
+ return 0; // dummy return to suppress warning
}
static Constant *ConstantFoldBinaryFP(double (*NativeFP)(double, double),
@@ -619,6 +620,7 @@ static Constant *ConstantFoldBinaryFP(double (*NativeFP)(double, double),
if (Ty == Type::DoubleTy)
return ConstantFP::get(APFloat(V));
assert(0 && "Can only constant fold float/double");
+ return 0; // dummy return to suppress warning
}
/// ConstantFoldCall - Attempt to constant fold a call to the specified function