[llvm] r191361 - [msan] Fix -Wreturn-type warnings in non-self-hosted build.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Wed Sep 25 01:56:00 PDT 2013
Author: eugenis
Date: Wed Sep 25 03:56:00 2013
New Revision: 191361
URL: http://llvm.org/viewvc/llvm-project?rev=191361&view=rev
Log:
[msan] Fix -Wreturn-type warnings in non-self-hosted build.
Modified:
llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp?rev=191361&r1=191360&r2=191361&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp Wed Sep 25 03:56:00 2013
@@ -918,6 +918,7 @@ struct MemorySanitizerVisitor : public I
case SequentiallyConsistent:
return SequentiallyConsistent;
}
+ llvm_unreachable("Unknown ordering");
}
AtomicOrdering addAcquireOrdering(AtomicOrdering a) {
@@ -934,6 +935,7 @@ struct MemorySanitizerVisitor : public I
case SequentiallyConsistent:
return SequentiallyConsistent;
}
+ llvm_unreachable("Unknown ordering");
}
// ------------------- Visitors.
More information about the llvm-commits
mailing list