aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-09-25 08:56:00 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-09-25 08:56:00 +0000
commit63799f6febc91ebec0d308737bfd1c659e4c24b7 (patch)
tree903e88117c4c01774ca744ba11ec343ecb5f2b7f
parente8a665f696b60834a3087e3d5bccf8cacf3ca39d (diff)
downloadexternal_llvm-63799f6febc91ebec0d308737bfd1c659e4c24b7.zip
external_llvm-63799f6febc91ebec0d308737bfd1c659e4c24b7.tar.gz
external_llvm-63799f6febc91ebec0d308737bfd1c659e4c24b7.tar.bz2
[msan] Fix -Wreturn-type warnings in non-self-hosted build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191361 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Instrumentation/MemorySanitizer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp
index eafa2b6..65db206 100644
--- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -918,6 +918,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
case SequentiallyConsistent:
return SequentiallyConsistent;
}
+ llvm_unreachable("Unknown ordering");
}
AtomicOrdering addAcquireOrdering(AtomicOrdering a) {
@@ -934,6 +935,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
case SequentiallyConsistent:
return SequentiallyConsistent;
}
+ llvm_unreachable("Unknown ordering");
}
// ------------------- Visitors.