forked from OSchip/llvm-project
[msan] Fix -Wreturn-type warnings in non-self-hosted build.
llvm-svn: 191361
This commit is contained in:
parent
64b1292bc2
commit
32be0340f5
|
@ -918,6 +918,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
||||||
case SequentiallyConsistent:
|
case SequentiallyConsistent:
|
||||||
return SequentiallyConsistent;
|
return SequentiallyConsistent;
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Unknown ordering");
|
||||||
}
|
}
|
||||||
|
|
||||||
AtomicOrdering addAcquireOrdering(AtomicOrdering a) {
|
AtomicOrdering addAcquireOrdering(AtomicOrdering a) {
|
||||||
|
@ -934,6 +935,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
||||||
case SequentiallyConsistent:
|
case SequentiallyConsistent:
|
||||||
return SequentiallyConsistent;
|
return SequentiallyConsistent;
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Unknown ordering");
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------- Visitors.
|
// ------------------- Visitors.
|
||||||
|
|
Loading…
Reference in New Issue