[llvm] r272793 - Add llvm_unreachable to silence a "not all control paths" false positive warning from MSVC.
Aaron Ballman via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 15 08:27:54 PDT 2016
Author: aaronballman
Date: Wed Jun 15 10:27:53 2016
New Revision: 272793
URL: http://llvm.org/viewvc/llvm-project?rev=272793&view=rev
Log:
Add llvm_unreachable to silence a "not all control paths" false positive warning from MSVC.
Modified:
llvm/trunk/lib/IR/AsmWriter.cpp
Modified: llvm/trunk/lib/IR/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AsmWriter.cpp?rev=272793&r1=272792&r2=272793&view=diff
==============================================================================
--- llvm/trunk/lib/IR/AsmWriter.cpp (original)
+++ llvm/trunk/lib/IR/AsmWriter.cpp Wed Jun 15 10:27:53 2016
@@ -2435,6 +2435,7 @@ static StringRef getUnnamedAddrEncoding(
case GlobalVariable::UnnamedAddr::Global:
return "unnamed_addr";
}
+ llvm_unreachable("Unknown UnnamedAddr");
}
static void maybePrintComdat(formatted_raw_ostream &Out,
More information about the llvm-commits
mailing list