[llvm-commits] [llvm] r51372 - /llvm/trunk/lib/Analysis/ConstantFolding.cpp

Gabor Greif ggreif at gmail.com
Wed May 21 07:07:30 PDT 2008


Author: ggreif
Date: Wed May 21 09:07:30 2008
New Revision: 51372

URL: http://llvm.org/viewvc/llvm-project?rev=51372&view=rev
Log:
suppress gcc3.4.6's <no value returned> warnings

Modified:
    llvm/trunk/lib/Analysis/ConstantFolding.cpp

Modified: llvm/trunk/lib/Analysis/ConstantFolding.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ConstantFolding.cpp?rev=51372&r1=51371&r2=51372&view=diff

==============================================================================
--- llvm/trunk/lib/Analysis/ConstantFolding.cpp (original)
+++ llvm/trunk/lib/Analysis/ConstantFolding.cpp Wed May 21 09:07:30 2008
@@ -602,6 +602,7 @@
   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 @@
   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





More information about the llvm-commits mailing list