[PATCH] D80916: [LegacyPM] Double check that passes correctly set their Modified status

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 01:50:00 PDT 2020


foad added inline comments.


================
Comment at: llvm/unittests/IR/LegacyPassManagerTest.cpp:683
       Function *SF = splitSimpleFunction(*F);
-      CallInst::Create(F, "", &SF->getEntryBlock());
+      CallInst::Create(F, "", &*SF->getEntryBlock().getFirstInsertionPt());
       ASSERT_EQ(M->getFunctionList().size(), 5U);
----------------
Is this change related to the rest of the patch somehow?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80916/new/

https://reviews.llvm.org/D80916





More information about the llvm-commits mailing list