Fix warnings about reaching end of non-void function
authorChris Lattner <sabre@nondot.org>
Thu, 27 May 2004 20:57:01 +0000 (20:57 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 27 May 2004 20:57:01 +0000 (20:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13852 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IPA/Andersens.cpp

index 6af1f610e050551e9f58a56b2fd7133f5e2b524c..371a8a0deec616f7207777dfa7875f8c6e8b9ed2 100644 (file)
@@ -491,6 +491,7 @@ Andersens::Node *Andersens::getNodeForConstantPointer(Constant *C) {
   } else {
     assert(0 && "Unknown constant pointer!");
   }
+  return 0;
 }
 
 /// getNodeForConstantPointerTarget - Return the node POINTED TO by the
@@ -518,6 +519,7 @@ Andersens::Node *Andersens::getNodeForConstantPointerTarget(Constant *C) {
   } else {
     assert(0 && "Unknown constant pointer!");
   }
+  return 0;
 }
 
 /// AddGlobalInitializerConstraints - Add inclusion constraints for the memory