Skip to content

Commit

Permalink
[msan] Fix -Wreturn-type warnings in non-self-hosted build.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191361 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
eugenis committed Sep 25, 2013
1 parent e8a665f commit 63799f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Transforms/Instrumentation/MemorySanitizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
case SequentiallyConsistent:
return SequentiallyConsistent;
}
llvm_unreachable("Unknown ordering");
}

AtomicOrdering addAcquireOrdering(AtomicOrdering a) {
Expand All @@ -934,6 +935,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
case SequentiallyConsistent:
return SequentiallyConsistent;
}
llvm_unreachable("Unknown ordering");
}

// ------------------- Visitors.
Expand Down

0 comments on commit 63799f6

Please sign in to comment.