[PATCH] D53602: [IRVerifier] Allow StructRet in statepoint

Cherry Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 7 11:57:50 PST 2018


cherry added a comment.

Thank you for the review!



================
Comment at: lib/IR/Verifier.cpp:2825
+      // Allow sret here and check the wrapped function in verifyStatepoint.
+      if (CS.getCalledFunction() == nullptr ||
+          CS.getCalledFunction()->getIntrinsicID() !=
----------------
anna wrote:
> why do you need this first condition?
This is to handle indirect calls (and avoid crash).


Repository:
  rL LLVM

https://reviews.llvm.org/D53602





More information about the llvm-commits mailing list