diff --git a/IDEHelper/Compiler/BfIRCodeGen.cpp b/IDEHelper/Compiler/BfIRCodeGen.cpp index 65fb165b..26d1a419 100644 --- a/IDEHelper/Compiler/BfIRCodeGen.cpp +++ b/IDEHelper/Compiler/BfIRCodeGen.cpp @@ -3504,7 +3504,7 @@ void BfIRCodeGen::HandleNextCmd() break; case BfIRIntrinsic_AtomicStore: { - auto memoryKindConst = llvm::dyn_cast(args[1]); + auto memoryKindConst = llvm::dyn_cast(args[2]); if (memoryKindConst == NULL) { FatalError("Non-constant success ordering on AtomicLoad");