summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-10-12 18:29:30 +0000
committerRui Ueyama <ruiu@google.com>2018-10-12 18:29:30 +0000
commit0f3a56c85035ac2c1021f5835574f110bfe8f2ec (patch)
tree2dabb6edd5107f21753f326e166f86f51af8469e /llvm/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp
parentf3fad55787af4aff3f4d9e10c86ddab20eabdeaf (diff)
downloadbcm5719-llvm-0f3a56c85035ac2c1021f5835574f110bfe8f2ec.tar.gz
bcm5719-llvm-0f3a56c85035ac2c1021f5835574f110bfe8f2ec.zip
Replace assert() with llvm_unreachable because it's obviously a typo.
llvm-svn: 344395
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp b/llvm/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp
index 20cc61df9b6..b3e6fce97b6 100644
--- a/llvm/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp
@@ -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;
}
OpenPOWER on IntegriCloud