Fix JitRunner.cpp Error creation pattern and reactivate tests.
authorNicolas Vasilache <ntv@google.com>
Fri, 27 Sep 2019 16:44:54 +0000 (09:44 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 27 Sep 2019 16:56:40 +0000 (09:56 -0700)
commit6543e99fe51b9077d8185ba9741770adc5f7cde5
tree5c08ef70412fc47111f33b584eecfb34a58c3f92
parente39b5a19ba2e5ed89975c1906ae2994b4d70cca8
Fix JitRunner.cpp Error creation pattern and reactivate tests.

linalg_integration_test.mlir and simple.mlir were temporarily disabled due to an OSS-only failure.

The issue is that, once created, an llvm::Error must be explicitly checked before it can be discarded or overwritten.

This CL fixes the issue and reenable the test.

PiperOrigin-RevId: 271589651
mlir/lib/Support/JitRunner.cpp
mlir/test/mlir-cpu-runner/linalg_integration_test.mlir
mlir/test/mlir-cpu-runner/simple.mlir