diff --git a/clang/lib/Analysis/UnsafeBufferUsage.cpp b/clang/lib/Analysis/UnsafeBufferUsage.cpp index 23c756babedbd9..a11f224170d5a6 100644 --- a/clang/lib/Analysis/UnsafeBufferUsage.cpp +++ b/clang/lib/Analysis/UnsafeBufferUsage.cpp @@ -287,7 +287,7 @@ isInUnspecifiedPointerContext(internal::Matcher InnerMatcher) { // clang-format off auto CallArgMatcher = callExpr( forEachArgumentWithParamType( - InnerMatcher, + InnerMatcher, isAnyPointer() /* array also decays to pointer type*/), unless(callee( functionDecl(hasAttr(attr::UnsafeBufferUsage)))));