OSDN Git Service

[InstSimplify] SimplifyPHINode(): check that instruction is in basic block first
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 27 Aug 2020 19:31:40 +0000 (22:31 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 27 Aug 2020 19:32:03 +0000 (22:32 +0300)
commitb85f91fdced8e94c43f3350152bcb2ccfa71ef14
tree23de23b55df1178845d5e27dd0d2d44006e91953
parent035833ae42aa6c597f28b6e0e1118508e26f175c
[InstSimplify] SimplifyPHINode(): check that instruction is in basic block first

As pointed out in post-commit review, this can legally be called
on instructions that are not inserted into basic blocks,
so don't blindly assume that there is basic block.
llvm/lib/Analysis/InstructionSimplify.cpp