[PATCH] D80916: [LegacyPM] Double check that passes correctly set their Modified status
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 8 03:34:40 PDT 2020
serge-sans-paille marked an inline comment as done.
serge-sans-paille 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);
----------------
foad wrote:
> Is this change related to the rest of the patch somehow?
Yes, without this change, the call is added at the end of the entryblock, i.e. after the terminator. It happens that hash computation triggers an assert (indirectly) on that (bad) situation.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80916/new/
https://reviews.llvm.org/D80916
More information about the llvm-commits
mailing list