diff options
author | Augie Fackler <augie@google.com> | 2022-07-12 16:03:34 -0400 |
---|---|---|
committer | Augie Fackler <augie@google.com> | 2022-07-12 16:44:06 -0400 |
commit | 9029bda0419fc710aecd03328b67457e59dcd80e (patch) | |
tree | 99b23283e31b35d779da6289a161715b5b5551e3 /llvm/unittests/ADT/StringMapTest.cpp | |
parent | 5edfc0b928b9ac4c653188828c5637de70bcf8ff (diff) | |
download | llvm-9029bda0419fc710aecd03328b67457e59dcd80e.zip llvm-9029bda0419fc710aecd03328b67457e59dcd80e.tar.gz llvm-9029bda0419fc710aecd03328b67457e59dcd80e.tar.bz2 |
[Attributor] Don't crash if getAnalysisResultForFunction() returns null LoopInfo
I have no idea what's going on here. This code was moved
around/introduced in change cb26b01d57f5 and starts crashing with a NULL
dereference once I apply https://reviews.llvm.org/D123090. I assume that
I've unwittingly taught the attributor enough that it's able to do more
clever things than in the past, and it's able to trip on this case. I
make no claims about the correctness of this patch, but it passes tests
and seems to fix all the crashes I've been seeing.
Differential Revision: https://reviews.llvm.org/D129589
Diffstat (limited to 'llvm/unittests/ADT/StringMapTest.cpp')
0 files changed, 0 insertions, 0 deletions