mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Some more assert(false) -> llvm_unreachable.
This commit is contained in:
@@ -1855,7 +1855,7 @@ namespace AsmParserx8664
|
||||
break;
|
||||
|
||||
default:
|
||||
assert ( 0 && "asm unsupported arg" );
|
||||
llvm_unreachable("Unsupported argument in asm.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -2781,7 +2781,7 @@ namespace AsmParserx8664
|
||||
e = new ComExp ( stmt->loc, e1 );
|
||||
break;
|
||||
default:
|
||||
assert ( 0 );
|
||||
llvm_unreachable("Unknown integer operation.");
|
||||
}
|
||||
e = e->semantic ( sc );
|
||||
return e->optimize ( WANTvalue | WANTinterpret );
|
||||
@@ -3383,7 +3383,7 @@ namespace AsmParserx8664
|
||||
#define HOST_WIDE_INT long
|
||||
bool getFrameRelativeValue ( LLValue* decl, HOST_WIDE_INT * result )
|
||||
{
|
||||
assert ( 0 );
|
||||
llvm_unreachable("getFrameRelativeValue not implemented.");
|
||||
// FIXME
|
||||
// // Using this instead of DECL_RTL for struct args seems like a
|
||||
// // good way to get hit by a truck because it may not agree with
|
||||
|
||||
@@ -1123,7 +1123,7 @@ DValue* CallExp::toElem(IRState* p)
|
||||
// *q |= mask;
|
||||
op = llvm::Instruction::Or;
|
||||
} else {
|
||||
assert(false);
|
||||
llvm_unreachable("Unrecognized bitop intrinsic.");
|
||||
}
|
||||
|
||||
LLValue *newVal = p->ir->CreateBinOp(op, val, mask, "bitop.new_val");
|
||||
|
||||
Reference in New Issue
Block a user