[PATCH] D80089: [mlir] NFC - Fix OperationSupport.cpp::findNamedAttr
Nicolas Vasilache via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 18 06:57:34 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG79f059c4ac8c: [mlir] NFC - Fix OperationSupport.cpp::findNamedAttr (authored by nicolasvasilache).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80089/new/
https://reviews.llvm.org/D80089
Files:
mlir/lib/IR/OperationSupport.cpp
Index: mlir/lib/IR/OperationSupport.cpp
===================================================================
--- mlir/lib/IR/OperationSupport.cpp
+++ mlir/lib/IR/OperationSupport.cpp
@@ -97,7 +97,7 @@
}
auto *it = llvm::lower_bound(attrs, name);
- if (it->first != name)
+ if (it == attrs.end() || it->first != name)
return attrs.end();
return it;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80089.264611.patch
Type: text/x-patch
Size: 368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200518/96c116e8/attachment.bin>
More information about the llvm-commits
mailing list