Skip to content

Commit d2d18a6

Browse files
committed
Use fatal error
Change-Id: I005f05d9bb874e2e366da5b53915d64ba900f812
1 parent 725f382 commit d2d18a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/AArch64/MachineSMEABIPass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,9 @@ void MachineSMEABI::emitAllocateLazySaveBuffer(
522522
{
523523
// Note: This case just needs to do `SVL << 48`. It is not implemented as we
524524
// generally don't support big-endian SVE/SME.
525-
assert(
526-
Subtarget->isLittleEndian() &&
527-
"TPIDR2 block initialization is not supported on big-endian targets");
525+
if (!Subtarget->isLittleEndian())
526+
reportFatalInternalError(
527+
"TPIDR2 block initialization is not supported on big-endian targets");
528528

529529
// Store buffer pointer and num_za_save_slices.
530530
// Bytes 10-15 are implicitly zeroed.

0 commit comments

Comments
 (0)