[llvm] [SandboxIR][NFC] GenericSetter tracker class (PR #102260)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 14:13:40 PDT 2024
================
@@ -687,7 +689,10 @@ void LoadInst::dump() const {
void StoreInst::setVolatile(bool V) {
auto &Tracker = Ctx.getTracker();
if (Tracker.isTracking())
----------------
vporpo wrote:
Hmm I am not sure I follow how this could be done. Could you elaborate?
Perhaps we could move the `isTracking()` check inside `track()` and have it create the object internally instead of having to create the object with `make_unique` and passing it as an argument.
https://github.com/llvm/llvm-project/pull/102260
More information about the llvm-commits
mailing list