Skip to content

Commit 95698c2

Browse files
authored
Return 'true' when the argument type isn't a string.
1 parent c2dba02 commit 95698c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7948,7 +7948,7 @@ static bool handleFunctionTypeAttr(TypeProcessingState &state, ParsedAttr &attr,
79487948

79497949
StringRef Argument;
79507950
if (!S.checkStringLiteralArgumentAttr(attr, 0, Argument))
7951-
return false;
7951+
return true;
79527952

79537953
// Delay if this is not a function type.
79547954
if (!unwrapped.isFunctionType())

0 commit comments

Comments
 (0)