diff options
author | Brian Gesiak <modocache@gmail.com> | 2020-02-18 23:28:00 -0500 |
---|---|---|
committer | Brian Gesiak <modocache@gmail.com> | 2020-02-18 23:32:55 -0500 |
commit | 26f356350bd56f5418e5fae230b1a6931774c8f1 (patch) | |
tree | c0b2fc4a4bc029c2f9f03c89ba04c20e94b3bebc /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 7c4b70402c6679427a5a2d4508355af7d4c61678 (diff) | |
download | llvm-26f356350bd56f5418e5fae230b1a6931774c8f1.zip llvm-26f356350bd56f5418e5fae230b1a6931774c8f1.tar.gz llvm-26f356350bd56f5418e5fae230b1a6931774c8f1.tar.bz2 |
[LazyCallGraph] Fix ambiguous index value
After having committed https://reviews.llvm.org/D72226, 2 buildbots
running GCC 5.4.0 began failing. The cause was the order in which those
compilers evaluated the left- and right-hand sides of the expression
`RC.SCCIndices[C] = RC.SCCIndices.size();`. This commit splits the
expression into multiple statements to avoid ambiguity, and adds a test
case that exercises the code that caused the test failures on those
older compilers (which was originally included in the reviewed patch,
https://reviews.llvm.org/D72226).
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions