1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed LLVM AtomicStore arg

This commit is contained in:
Brian Fiete 2022-07-26 17:52:30 -04:00
parent a1c7e6e02b
commit 4f2fd58284

View file

@ -3504,7 +3504,7 @@ void BfIRCodeGen::HandleNextCmd()
break;
case BfIRIntrinsic_AtomicStore:
{
auto memoryKindConst = llvm::dyn_cast<llvm::ConstantInt>(args[1]);
auto memoryKindConst = llvm::dyn_cast<llvm::ConstantInt>(args[2]);
if (memoryKindConst == NULL)
{
FatalError("Non-constant success ordering on AtomicLoad");