mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149967 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -703,8 +703,7 @@ static uint64_t ValueForPoison(uint64_t PoisonByte, size_t ShadowRedzoneSize) {
|
||||
if (ShadowRedzoneSize == 4)
|
||||
return (PoisonByte << 24) + (PoisonByte << 16) +
|
||||
(PoisonByte << 8) + (PoisonByte);
|
||||
assert(0 && "ShadowRedzoneSize is either 1, 2 or 4");
|
||||
return 0;
|
||||
llvm_unreachable("ShadowRedzoneSize is either 1, 2 or 4");
|
||||
}
|
||||
|
||||
static void PoisonShadowPartialRightRedzone(uint8_t *Shadow,
|
||||
|
Reference in New Issue
Block a user