mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 06:40:18 +00:00
[mlir] Fix build on gcc-5 after D104167
This commit is contained in:
parent
b259740801
commit
6000749804
@ -36,7 +36,7 @@ def AOp : NS_Op<"a_op", []> {
|
||||
// DECL: static ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames()
|
||||
// DECL-NEXT: static ::llvm::StringRef attrNames[] =
|
||||
// DECL-SAME: {::llvm::StringRef("aAttr"), ::llvm::StringRef("bAttr"), ::llvm::StringRef("cAttr")};
|
||||
// DECL-NEXT: return attrNames;
|
||||
// DECL-NEXT: return ::llvm::makeArrayRef(attrNames);
|
||||
|
||||
// DECL: ::mlir::Identifier aAttrAttrName()
|
||||
// DECL-NEXT: return getAttributeNameForIndex(0);
|
||||
|
@ -666,7 +666,7 @@ void OpEmitter::genAttrNameGetters() {
|
||||
body << "::llvm::StringRef(\"" << attrName
|
||||
<< "\")";
|
||||
});
|
||||
body << "};\n return attrNames;";
|
||||
body << "};\n return ::llvm::makeArrayRef(attrNames);";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user