[llvm] [SandboxIR] Added new StoreInst::create() functions with isVolatile arg (PR #100961)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 11:00:02 PDT 2024
================
@@ -804,14 +804,23 @@ class StoreInst final : public Instruction {
}
public:
+ /// Return true if this is a load from a volatile memory location.
+ bool isVolatile() const { return cast<llvm::LoadInst>(Val)->isVolatile(); }
----------------
vporpo wrote:
The build fails because this should be: `cast<llvm::StoreInst>(Val)`, not `llvm::LoadInst`.
https://github.com/llvm/llvm-project/pull/100961
More information about the llvm-commits
mailing list