diff options
author | Yitzhak Mandelbaum <yitzhakm@google.com> | 2023-08-03 21:01:50 +0000 |
---|---|---|
committer | Yitzhak Mandelbaum <yitzhakm@google.com> | 2023-08-04 21:10:35 +0000 |
commit | e21b1dd9cc5316c00216ba54f899f67fe473ab33 (patch) | |
tree | 81a0a923dc79748ddd579d13f0a6aea41f047699 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 22f63b5c735f2c91c5c3250af575f08cc651836a (diff) | |
download | llvm-e21b1dd9cc5316c00216ba54f899f67fe473ab33.zip llvm-e21b1dd9cc5316c00216ba54f899f67fe473ab33.tar.gz llvm-e21b1dd9cc5316c00216ba54f899f67fe473ab33.tar.bz2 |
[clang][CFG] Fix 2 memory errors in interval computation.
This fixes 2 bugs and adds corresponding tests. Both related to unreachable
blocks. One occured in the `WTOCompare` construction, which assumed the size of
the order was the same as the number of blocks in the CFG, which isn't true when
some blocks are unreachable. The other assumed predecessor pointers were
non-null, which can be false for blocks with unreachable predecessors.
Differential Revision: https://reviews.llvm.org/D157033
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions