[clang] 606735c - [Clang] Add an explicit makeArrayRef to appease gcc 5.4.
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 13 09:46:44 PDT 2021
Author: Craig Topper
Date: 2021-08-13T09:42:28-07:00
New Revision: 606735c045b93cafe17bacbad10352b5a1c35cc0
URL: https://github.com/llvm/llvm-project/commit/606735c045b93cafe17bacbad10352b5a1c35cc0
DIFF: https://github.com/llvm/llvm-project/commit/606735c045b93cafe17bacbad10352b5a1c35cc0.diff
LOG: [Clang] Add an explicit makeArrayRef to appease gcc 5.4.
Added:
Modified:
clang/lib/Sema/ParsedAttr.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/ParsedAttr.cpp b/clang/lib/Sema/ParsedAttr.cpp
index 4538ad25075b..045847d0ce0f 100644
--- a/clang/lib/Sema/ParsedAttr.cpp
+++ b/clang/lib/Sema/ParsedAttr.cpp
@@ -146,7 +146,7 @@ const ParsedAttrInfo &ParsedAttrInfo::get(const AttributeCommonInfo &A) {
}
ArrayRef<const ParsedAttrInfo *> ParsedAttrInfo::getAllBuiltin() {
- return AttrInfoMap;
+ return llvm::makeArrayRef(AttrInfoMap);
}
unsigned ParsedAttr::getMinArgs() const { return getInfo().NumArgs; }
More information about the cfe-commits
mailing list