[PATCH] D40840: [FuzzMutate] Correctly insert sinks and sources around invoke instructions

Justin Bogner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 15:24:53 PST 2017


bogner added inline comments.


================
Comment at: lib/FuzzMutate/RandomIRBuilder.cpp:156-157
+    // we can't insert loads or stores from them
+    if (isa<InvokeInst>(Inst))
+      return false;
+
----------------
Would isa<TerminatorInst> or whatever work here? I guess this is the only case, but it seems fine to be more general.


https://reviews.llvm.org/D40840





More information about the llvm-commits mailing list