diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-05-22 04:58:33 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-05-22 04:58:33 +0000 |
commit | c9941666ca2045b46b1cbc7fc0e1e872900fb170 (patch) | |
tree | 3a63d0ed89def5c15cc1b36f75d1de03cd3f6fdc | |
parent | a87df5a035ad35b182df7757403b877b3a312912 (diff) |
Merge from mainline.
uppress gcc3.4.6's <no value returned> warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_23@51412 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/ConstantFolding.cpp | 2 |
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 |