[llvm] r281742 - [IRObjectFile] Turn llvm_unreachable("foo") into something more explicative.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 16 09:07:19 PDT 2016
Author: davide
Date: Fri Sep 16 11:07:19 2016
New Revision: 281742
URL: http://llvm.org/viewvc/llvm-project?rev=281742&view=rev
Log:
[IRObjectFile] Turn llvm_unreachable("foo") into something more explicative.
Modified:
llvm/trunk/lib/Object/IRObjectFile.cpp
Modified: llvm/trunk/lib/Object/IRObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/IRObjectFile.cpp?rev=281742&r1=281741&r2=281742&view=diff
==============================================================================
--- llvm/trunk/lib/Object/IRObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/IRObjectFile.cpp Fri Sep 16 11:07:19 2016
@@ -102,7 +102,7 @@ void IRObjectFile::CollectAsmUndefinedRe
uint32_t Res = BasicSymbolRef::SF_None;
switch (Value) {
case RecordStreamer::NeverSeen:
- llvm_unreachable("foo");
+ llvm_unreachable("NeverSeen should have been replaced earlier");
case RecordStreamer::DefinedGlobal:
Res |= BasicSymbolRef::SF_Global;
break;
More information about the llvm-commits
mailing list