mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-19 18:41:50 +01:00
Use llvm_unreachable instead of assert(0).
Also removed some unused functions.
This commit is contained in:
@@ -257,7 +257,7 @@ namespace {
|
||||
return const_cast<LLType*>(LLType::getX86_FP80Ty(gIR->context()));
|
||||
|
||||
default:
|
||||
assert(0 && "Unanticipated argument class");
|
||||
llvm_unreachable("Unanticipated argument class.");
|
||||
}
|
||||
|
||||
switch(cl.classes[1]) {
|
||||
@@ -291,7 +291,7 @@ namespace {
|
||||
break;
|
||||
|
||||
default:
|
||||
assert(0 && "Unanticipated argument class for second half");
|
||||
llvm_unreachable("Unanticipated argument class for second half.");
|
||||
}
|
||||
return LLStructType::get(gIR->context(), parts);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user