From 6e38b0ef412c3a41d6e7ad4b04704f3fb2b9f875 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Wed, 21 May 2008 14:07:30 +0000 Subject: [PATCH] suppress gcc3.4.6's warnings llvm-svn: 51372 --- llvm/lib/Analysis/ConstantFolding.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index 91c745e93260..7601aeb2f4f7 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