Skip to content
Snippets Groups Projects
Commit eabfd8b1 authored by John McCall's avatar John McCall
Browse files

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
parent fa7f519c
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ GetGlobalAddressSymbol(const MachineOperand &MO) const { ...@@ -34,7 +34,7 @@ GetGlobalAddressSymbol(const MachineOperand &MO) const {
Mang.getNameWithPrefix(Name, GV, false); Mang.getNameWithPrefix(Name, GV, false);
switch (MO.getTargetFlags()) { 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; case 0: break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment