aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorPeter Rong <PeterRong96@gmail.com>2023-03-29 22:13:25 -0700
committerPeter Rong <PeterRong96@gmail.com>2023-03-30 20:14:11 -0700
commit3b2476910ba33f1112c1b915b3cf41033ffd7e1a (patch)
tree2d919a1ea834a3b09f8edb229d9c598d39c40098 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parent0de988c98c27d2d020dcee2c4dabc52e52fda382 (diff)
downloadllvm-3b2476910ba33f1112c1b915b3cf41033ffd7e1a.zip
llvm-3b2476910ba33f1112c1b915b3cf41033ffd7e1a.tar.gz
llvm-3b2476910ba33f1112c1b915b3cf41033ffd7e1a.tar.bz2
[WASM] Prevent casting `undef` to `CosntantSDNode`
WebAssembly tries to cast an `undef` to `CosntantSDNode` during `LowerAccessVectorElement`. These operations will trigger an assertion error in cast. To avoid this issue, we prevent casting, and abort the lowering operation. A unit test is also included. This patch fixes [pr61828](https://github.com/llvm/llvm-project/issues/61828) Reviewed By: tlively Differential Revision: https://reviews.llvm.org/D147198
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions