[llvm] f8b4412 - [dsymutil] Add llvm_unreachable to silence warning
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Thu May 21 12:28:00 PDT 2020
Author: Jonas Devlieghere
Date: 2020-05-21T12:27:52-07:00
New Revision: f8b4412b997b5f92d01d80eabbe587d51c8ed2c3
URL: https://github.com/llvm/llvm-project/commit/f8b4412b997b5f92d01d80eabbe587d51c8ed2c3
DIFF: https://github.com/llvm/llvm-project/commit/f8b4412b997b5f92d01d80eabbe587d51c8ed2c3.diff
LOG: [dsymutil] Add llvm_unreachable to silence warning
Fixes warning: control reaches end of non-void function [-Wreturn-type]
Added:
Modified:
llvm/tools/dsymutil/Reproducer.cpp
Removed:
################################################################################
diff --git a/llvm/tools/dsymutil/Reproducer.cpp b/llvm/tools/dsymutil/Reproducer.cpp
index 448736d702e4..5c60758c6f80 100644
--- a/llvm/tools/dsymutil/Reproducer.cpp
+++ b/llvm/tools/dsymutil/Reproducer.cpp
@@ -81,4 +81,5 @@ Reproducer::createReproducer(ReproducerMode Mode, StringRef Root) {
case ReproducerMode::Off:
return std::make_unique<Reproducer>();
}
+ llvm_unreachable("All cases handled above.");
}
More information about the llvm-commits
mailing list