[MLIR][Shape] Fix lowering of `shape.get_extent`
authorFrederik Gossen <frgossen@google.com>
Tue, 30 Jun 2020 08:33:49 +0000 (08:33 +0000)
committerFrederik Gossen <frgossen@google.com>
Tue, 30 Jun 2020 08:35:24 +0000 (08:35 +0000)
commit8577a090f5f04e18d72bb2dd387e60082e4da0ca
treee5e577e32511ba2df3424a28cd2c2405261a5b43
parentfe08ab542bd6328a7906e38ae473cf655eb6a228
[MLIR][Shape] Fix lowering of `shape.get_extent`

The declarative conversion patterns caused crashes in the asan configuration.
The non-declarative implementation circumvents this.

Differential Revision: https://reviews.llvm.org/D82797
mlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp
mlir/lib/Conversion/ShapeToStandard/ShapeToStandardPatterns.td