diff options
| author | Geoffrey Martin-Noble <gcmn@google.com> | 2019-05-30 16:02:49 -0700 |
|---|---|---|
| committer | Mehdi Amini <joker.eph@gmail.com> | 2019-06-01 20:11:31 -0700 |
| commit | 60d6249fbd7873a822b255f5a83608b329c5c4fe (patch) | |
| tree | bf81b193a92ad00bbe4e555c69421738c3290427 /mlir/lib/ExecutionEngine | |
| parent | 4fd012cda215805a1fe34449fb7b28f6644842ba (diff) | |
| download | bcm5719-llvm-60d6249fbd7873a822b255f5a83608b329c5c4fe.tar.gz bcm5719-llvm-60d6249fbd7873a822b255f5a83608b329c5c4fe.zip | |
Replace checks against numDynamicDims with hasStaticShape
--
PiperOrigin-RevId: 250782165
Diffstat (limited to 'mlir/lib/ExecutionEngine')
| -rw-r--r-- | mlir/lib/ExecutionEngine/MemRefUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/ExecutionEngine/MemRefUtils.cpp b/mlir/lib/ExecutionEngine/MemRefUtils.cpp index 280fb0dba25..51636037382 100644 --- a/mlir/lib/ExecutionEngine/MemRefUtils.cpp +++ b/mlir/lib/ExecutionEngine/MemRefUtils.cpp @@ -41,7 +41,7 @@ allocMemRefDescriptor(Type type, bool allocateData = true, auto memRefType = type.dyn_cast<MemRefType>(); if (!memRefType) return make_string_error("non-memref argument not supported"); - if (memRefType.getNumDynamicDims() != 0) + if (!memRefType.hasStaticShape()) return make_string_error("memref with dynamic shapes not supported"); auto elementType = memRefType.getElementType(); |

