summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit6e38b0ef412c3a41d6e7ad4b04704f3fb2b9f875 (patch)
tree84fa1d2e1333d0e44705335b8f0b0b8f4885a639 /llvm/lib/Analysis/ConstantFolding.cpp
parent9a5ffcb14ebaf166fae0b90da4e3f1db16ab8138 (diff)
downloadbcm5719-llvm-6e38b0ef412c3a41d6e7ad4b04704f3fb2b9f875.tar.gz
bcm5719-llvm-6e38b0ef412c3a41d6e7ad4b04704f3fb2b9f875.zip
suppress gcc3.4.6's <no value returned> warnings
llvm-svn: 51372
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r--llvm/lib/Analysis/ConstantFolding.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index 91c745e9326..7601aeb2f4f 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud