summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-02-05 08:31:47 +0000
committerCraig Topper <craig.topper@gmail.com>2012-02-05 08:31:47 +0000
commit5e25ee8a1fcf8288d00d731b0f7ab7976f33b123 (patch)
tree70eb3742751eddfc9f934fdc193f2ee4dae2ea7b /lib/CodeGen/MachineModuleInfo.cpp
parent69f44692bf5fea1d908fc06487e173837d06ea58 (diff)
downloadllvm-5e25ee8a1fcf8288d00d731b0f7ab7976f33b123.tar.gz
llvm-5e25ee8a1fcf8288d00d731b0f7ab7976f33b123.tar.bz2
llvm-5e25ee8a1fcf8288d00d731b0f7ab7976f33b123.tar.xz
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--lib/CodeGen/MachineModuleInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp
index 80c4854238..a7bd0f7e9a 100644
--- a/lib/CodeGen/MachineModuleInfo.cpp
+++ b/lib/CodeGen/MachineModuleInfo.cpp
@@ -268,9 +268,9 @@ MachineModuleInfo::MachineModuleInfo(const MCAsmInfo &MAI,
MachineModuleInfo::MachineModuleInfo()
: ImmutablePass(ID),
Context(*(MCAsmInfo*)0, *(MCRegisterInfo*)0, (MCObjectFileInfo*)0) {
- assert(0 && "This MachineModuleInfo constructor should never be called, MMI "
- "should always be explicitly constructed by LLVMTargetMachine");
- abort();
+ llvm_unreachable("This MachineModuleInfo constructor should never be called, "
+ "MMI should always be explicitly constructed by "
+ "LLVMTargetMachine");
}
MachineModuleInfo::~MachineModuleInfo() {