aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Compression.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2020-08-08 15:23:11 -0700
committerThomas Lively <tlively@google.com>2020-08-08 15:23:11 -0700
commitcc612c29084e907900ce63ad9031ab573a64e942 (patch)
tree484722fc05c1d039b845156a54f9905b48e91cc8 /llvm/lib/Support/Compression.cpp
parent430db35bf21505015c618e292e98793e2ed49169 (diff)
downloadllvm-cc612c29084e907900ce63ad9031ab573a64e942.zip
llvm-cc612c29084e907900ce63ad9031ab573a64e942.tar.gz
llvm-cc612c29084e907900ce63ad9031ab573a64e942.tar.bz2
[WebAssembly] Fix FastISel address calculation bug
Fixes PR47040, in which an assertion was improperly triggered during FastISel's address computation. The issue was that an `Address` set to be relative to the FrameIndex with offset zero was incorrectly considered to have an unset base. When the left hand side of an add set the Address to be 0 off the FrameIndex, the right side would not detect that the Address base had already been set and could try to set the Address to be relative to a register instead, triggering an assertion. This patch fixes the issue by explicitly tracking whether an `Address` has been set rather than interpreting an offset of zero to mean the `Address` has not been set. Differential Revision: https://reviews.llvm.org/D85581
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
0 files changed, 0 insertions, 0 deletions