Replace assert() with llvm_unreachable because it's obviously a typo.
authorRui Ueyama <ruiu@google.com>
Fri, 12 Oct 2018 18:29:30 +0000 (18:29 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 12 Oct 2018 18:29:30 +0000 (18:29 +0000)
llvm-svn: 344395

llvm/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp

index 20cc61d..b3e6fce 100644 (file)
@@ -155,7 +155,7 @@ Die2BTFEntry::Die2BTFEntry(const DIE &Die) : Die(Die) {
   case BTF_KIND_VOLATILE:
     break;
   default:
-    assert("Invalid Die passed into BTFTypeEntry()");
+    llvm_unreachable("Invalid Die passed into BTFTypeEntry()");
     break;
   }