diff options
| author | John McCall <rjmccall@apple.com> | 2009-12-18 00:27:18 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2009-12-18 00:27:18 +0000 |
| commit | eabfd8b1557deaf48fe3a765277b3f7e68f69558 (patch) | |
| tree | 66a1dfd599d8139743097887478c079347f4ad08 /llvm/lib/Target | |
| parent | fa7f519ce4f21884380c3448538c2adf6bd5ef20 (diff) | |
| download | bcm5719-llvm-eabfd8b1557deaf48fe3a765277b3f7e68f69558.tar.gz bcm5719-llvm-eabfd8b1557deaf48fe3a765277b3f7e68f69558.zip | |
Pass the error string directly to llvm_unreachable instead of the residual
(0 && "error"). Rough consensus seems to be that g++ *should* be diagnosing
this because the pointer makes it not an ICE in c++03. Everyone agrees that
the current standard is silly and null-pointer-ness should not be based on
ICE-ness. Excellent fight scene in Act II, denouement weak, two stars.
llvm-svn: 91644
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp b/llvm/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp index f505b239b63..595b7e789c7 100644 --- a/llvm/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp +++ b/llvm/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp @@ -34,7 +34,7 @@ GetGlobalAddressSymbol(const MachineOperand &MO) const { Mang.getNameWithPrefix(Name, GV, false); switch (MO.getTargetFlags()) { - default: llvm_unreachable(0 && "Unknown target flag on GV operand"); + default: llvm_unreachable("Unknown target flag on GV operand"); case 0: break; } |

