[llvm] r344395 - Replace assert() with llvm_unreachable because it's obviously a typo.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 12 11:29:30 PDT 2018
Author: ruiu
Date: Fri Oct 12 11:29:30 2018
New Revision: 344395
URL: http://llvm.org/viewvc/llvm-project?rev=344395&view=rev
Log:
Replace assert() with llvm_unreachable because it's obviously a typo.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp?rev=344395&r1=344394&r2=344395&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp Fri Oct 12 11:29:30 2018
@@ -155,7 +155,7 @@ Die2BTFEntry::Die2BTFEntry(const DIE &Di
case BTF_KIND_VOLATILE:
break;
default:
- assert("Invalid Die passed into BTFTypeEntry()");
+ llvm_unreachable("Invalid Die passed into BTFTypeEntry()");
break;
}
More information about the llvm-commits
mailing list