diff options
author | Michael Holman <michael.holman@microsoft.com> | 2021-02-01 10:51:29 -0800 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2021-02-01 11:23:56 -0800 |
commit | 8bfef787225c14a67db23254b82b330e85d1c35c (patch) | |
tree | ab638eec81fc07ee826e5082cf23bccce813f3eb /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | 35a57f39b5d126646335183f1ff0f7adb52d63bc (diff) | |
download | llvm-8bfef787225c14a67db23254b82b330e85d1c35c.zip llvm-8bfef787225c14a67db23254b82b330e85d1c35c.tar.gz llvm-8bfef787225c14a67db23254b82b330e85d1c35c.tar.bz2 |
[ConstantHoisting] Fix bug where constant materialization could insert into EH pad
If the incoming block to a phi node is an EH pad, then we will
materialize into an EH pad, which is not supposed to happen. To fix
this, I added a check to see if incoming block of a phi node is an EH
pad before using it as the insertion point.
Differential Revision: https://reviews.llvm.org/D95019
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions