Fix opt build.

PiperOrigin-RevId: 237141751
This commit is contained in:
MLIR Team 2019-03-06 16:18:56 -08:00 committed by jpienaar
parent b8b15c7700
commit 1678fd1584
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ static SmallVector<IndexHandle, 8> getMemRefSizes(Value *memRef) {
MemRefType memRefType = memRef->getType().cast<MemRefType>();
auto maps = memRefType.getAffineMaps();
(void)maps;
assert((maps.empty() || (maps.size() == 1 && maps[0].isIdentity())) &&
"Layout maps not supported");
SmallVector<IndexHandle, 8> res;