https://github.com/usx95 commented:

Thanks. Mostly LG.

Can you also test that this works for invalidations. Something like:

```cpp
std::string GLOBAL = "global";
struct S {
    std::string_view data;
    void foo() {
        std::vector<std::string> v = {"42"};
        data = v[0];
        v.push_back("43");
        bar(); // use-after-invalidation of 'data'.
        data = GLOBAL;
    }
    void bar();
};
```

https://godbolt.org/z/o1W7h7cWo

https://github.com/llvm/llvm-project/pull/191731
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to