[llvm] [msan] Don't modify CFG iterating it (PR #90691)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 17:25:53 PDT 2024


================
@@ -2181,6 +2187,10 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
     return ConstantDataVector::get(IRB.getContext(), OrderingTable);
   }
 
+  void instrument(Instruction &I) {
----------------
fmayer wrote:

Why don't we just call `InstVisitor<MemorySanitizerVisitor>::visit` in the loop?

https://github.com/llvm/llvm-project/pull/90691


More information about the llvm-commits mailing list