[mlir] NFC - Fix OperationSupport.cpp::findNamedAttr
authorNicolas Vasilache <ntv@google.com>
Mon, 18 May 2020 13:33:35 +0000 (09:33 -0400)
committerNicolas Vasilache <ntv@google.com>
Mon, 18 May 2020 13:36:00 +0000 (09:36 -0400)
commit79f059c4ac8cc63c770069557ed9a1f5b921c2c8
treed61405cc77c51415429170274ba03904b17bf70c
parent57d8b8d6f0b91b380ca3b270b4439c338ed67f53
[mlir] NFC - Fix OperationSupport.cpp::findNamedAttr

Summary:
When NamedAttrList::get is called against a StringRef and the
entry is not present, the Identifier::operator== crashes.
Interestingly there seems to be no use of the NamedAttrList::get(StringRef) in
the codebase so far. A subsequent commit will introduce such a use.

Differential Revision: https://reviews.llvm.org/D80089
mlir/lib/IR/OperationSupport.cpp