[MLIR][NFC] Fix for VS2017 bug.
authorFrank Laub <frank.laub@intel.com>
Wed, 4 Mar 2020 00:24:03 +0000 (16:24 -0800)
committerFrank Laub <frank.laub@intel.com>
Wed, 4 Mar 2020 01:06:22 +0000 (17:06 -0800)
commit216ef5b9abb85a8116366dfa1bd712c988e08cb0
tree805b20af13e6042a84502ccbaacab07761c2080b
parent1a5da3f0b2054eb1db8fedea8ab46be708c0715e
[MLIR][NFC] Fix for VS2017 bug.

Apparently there is a bug in VS2017 concerning compile-time constant
expressions.
https://developercommunityapi.westus.cloudapp.azure.com/content/problem/110435/not-compile-time-constant-expression.html

This change works with any C++11 compiler (including VS2017) and is a little bit
easier to read.

Reviewers: stella.stamenova, nicolasvasilache

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75584
mlir/include/mlir/ExecutionEngine/CRunnerUtils.h