From 63799f6febc91ebec0d308737bfd1c659e4c24b7 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Wed, 25 Sep 2013 08:56:00 +0000 Subject: [PATCH] [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 --- lib/Transforms/Instrumentation/MemorySanitizer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp index eafa2b6165e..65db206e570 100644 --- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -918,6 +918,7 @@ struct MemorySanitizerVisitor : public InstVisitor { case SequentiallyConsistent: return SequentiallyConsistent; } + llvm_unreachable("Unknown ordering"); } AtomicOrdering addAcquireOrdering(AtomicOrdering a) { @@ -934,6 +935,7 @@ struct MemorySanitizerVisitor : public InstVisitor { case SequentiallyConsistent: return SequentiallyConsistent; } + llvm_unreachable("Unknown ordering"); } // ------------------- Visitors.