suppress gcc3.4.6's <no value returned> warnings
authorGabor Greif <ggreif@gmail.com>
Wed, 21 May 2008 14:07:30 +0000 (14:07 +0000)
committerGabor Greif <ggreif@gmail.com>
Wed, 21 May 2008 14:07:30 +0000 (14:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51372 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ConstantFolding.cpp

index 91c745e9326072492727f9e43bf69f8f4637e660..7601aeb2f4f7785d13fb75de970ae54e01c4aa98 100644 (file)
@@ -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