[mlir][unittest] Fix crash when building with MSVC 2022
authorAlexandre Ganea <alex_toresh@yahoo.fr>
Fri, 30 Sep 2022 12:27:04 +0000 (08:27 -0400)
committerAlexandre Ganea <alex_toresh@yahoo.fr>
Wed, 5 Oct 2022 16:16:54 +0000 (12:16 -0400)
commit083617afc297f9d62a926fe8decbd9f616bd1b60
treecc8114fe30864da1cdaba1871eb7eff7e466d564
parent941f71adf68e969b3832313fb9fe463c38377695
[mlir][unittest] Fix crash when building with MSVC 2022

The test Dialect/Affine/ops.mlir was failing when building with
Visual Studio 2022 version 17.3.5. This was caused by a bad MSVC codegen, when
capturing a `constexpr` in a lambda. The bug was reported to Microsoft, see
differential for more information.

Differential revision: https://reviews.llvm.org/D134227
mlir/lib/Dialect/Affine/IR/AffineOps.cpp