summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Neustifter <astifter-llvm@gmx.at>2009-09-04 21:22:04 +0000
committerAndreas Neustifter <astifter-llvm@gmx.at>2009-09-04 21:22:04 +0000
commitb7d704dac3dbf6de49c4611f245eb3a5989d6331 (patch)
tree8e36abfdb94f6ea2475831e7fd0fbe42cc3228c8
parent7af06f63bf7cb408dfa8e5f8b79c80e5bd9adafd (diff)
downloadbcm5719-llvm-b7d704dac3dbf6de49c4611f245eb3a5989d6331.tar.gz
bcm5719-llvm-b7d704dac3dbf6de49c4611f245eb3a5989d6331.zip
Prevent warnings on compilers for which its not clear that assert won't return.
llvm-svn: 81044
-rw-r--r--llvm/lib/Analysis/ProfileVerifierPass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ProfileVerifierPass.cpp b/llvm/lib/Analysis/ProfileVerifierPass.cpp
index e0ef6cee4fe..0cb75a2a07d 100644
--- a/llvm/lib/Analysis/ProfileVerifierPass.cpp
+++ b/llvm/lib/Analysis/ProfileVerifierPass.cpp
@@ -167,6 +167,7 @@ double ProfileVerifierPass::ReadOrAssert(ProfileInfo::Edge E) {
return 0;
} else {
assert(0 && Message);
+ return 0;
}
} else {
return EdgeWeight;
OpenPOWER on IntegriCloud