HomePhabricator

[MLIR][NFC] Fix for VS2017 bug.

Authored by flaub on Mar 3 2020, 4:24 PM.

Description

[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

Details

Committed
flaubMar 3 2020, 5:06 PM
Differential Revision
D75584: [MLIR] Fix for MSVC
Parents
rG1a5da3f0b205: [gn build] Fix llvm-gsymutil after D75291
Branches
Unknown
Tags
Unknown