Skip to content

Commit 2cb1c3d

Browse files
Dinar TemirbulatovDinar Temirbulatov
authored andcommitted
Resolved missed comment at #7519
1 parent ef679b5 commit 2cb1c3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7978,9 +7978,8 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto,
79787978
// arguments or return values, then warn the user that the streaming and
79797979
// non-streaming vector lengths may be different.
79807980
const auto *CallerFD = dyn_cast<FunctionDecl>(CurContext);
7981-
bool IsBuiltin = FD && FD->getBuiltinID();
79827981
if (CallerFD) {
7983-
if (!IsBuiltin && AnyScalableArgsOrRet) {
7982+
if ((!FD || !FD->getBuiltinID()) && AnyScalableArgsOrRet) {
79847983
bool IsCalleeStreaming = ExtInfo.AArch64SMEAttributes &
79857984
FunctionType::SME_PStateSMEnabledMask;
79867985
bool IsCalleeStreamingCompatible =

0 commit comments

Comments
 (0)