aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2020-07-04 18:11:24 -0700
committerThomas Lively <tlively@google.com>2020-07-04 18:11:24 -0700
commit65330f394b2c5ede01acb97a84112c3cc0127c46 (patch)
tree28af39e759c1e1f979ec2029a35b9d8cb9b107cd /clang/lib/Frontend/CompilerInvocation.cpp
parent7e2d27bc554eb607c90e55c89d2537f5d711234c (diff)
downloadllvm-65330f394b2c5ede01acb97a84112c3cc0127c46.zip
llvm-65330f394b2c5ede01acb97a84112c3cc0127c46.tar.gz
llvm-65330f394b2c5ede01acb97a84112c3cc0127c46.tar.bz2
[WebAssembly] Do not assume br_table range checks will be gt_u
OSS-Fuzz and the Emscripten test suite uncovered some edge cases in which the range check instruction seemed to be an (i32.const 0) or other unexpected instruction, triggering an assertion. Unfortunately the reproducers are rather complicated, so they don't make good unit tests. This commit removes the bad assertion and conservatively optimizes range checks only when the range check instruction is i32.gt_u. Differential Revision: https://reviews.llvm.org/D83169
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions