[ConstraintElimination] Make sure the variable is available before use.
authorFlorian Hahn <flo@fhahn.com>
Fri, 30 Sep 2022 17:09:01 +0000 (18:09 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 30 Sep 2022 17:09:01 +0000 (18:09 +0100)
commit04c711c78d2d2c9239b7e0c65a7a3c07d3bd89ed
treefb0174b1de73d722ac722cb7857c7e37efbba245
parentd8315681714222e83e32beba374a5ff976d90059
[ConstraintElimination] Make sure the variable is available before use.

This fixes a crash when trying to access an index for a value where we
don't have a known index.

Fixes #58009.
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
llvm/test/Transforms/ConstraintElimination/zext.ll