Prevent warnings on compilers for which its not clear that assert won't return.
authorAndreas Neustifter <astifter-llvm@gmx.at>
Fri, 4 Sep 2009 21:22:04 +0000 (21:22 +0000)
committerAndreas Neustifter <astifter-llvm@gmx.at>
Fri, 4 Sep 2009 21:22:04 +0000 (21:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81044 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ProfileVerifierPass.cpp

index e0ef6cee4fec325a81c2d3ac5ac140468a86d9f1..0cb75a2a07d3354f2e291e2799bdcf643d03ad6c 100644 (file)
@@ -167,6 +167,7 @@ double ProfileVerifierPass::ReadOrAssert(ProfileInfo::Edge E) {
       return 0;
     } else { 
       assert(0 && Message);
+      return 0;
     }
   } else {
     return EdgeWeight;