[PATCH] D29999: [InlineFunction] add nonnull assumptions based on argument attributes

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 12:03:30 PST 2017


mehdi_amini accepted this revision.
mehdi_amini added a comment.
This revision is now accepted and ready to land.

LGTM. Thanks.



================
Comment at: lib/Transforms/Utils/InlineFunction.cpp:1108
   DominatorTree DT;
   bool DTCalculated = false;
+  auto calcDomTreeIfNeeded = [&]() {
----------------
could be a static variable inside the lambda, that'd reduce the scope.


https://reviews.llvm.org/D29999





More information about the llvm-commits mailing list