diff options
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index ebdc8321f70..c8f2d05e0d4 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -2442,7 +2442,8 @@ void Sema::CheckFormatString(const StringLiteral *FExpr, Str, HasVAListArg, TheCall, format_idx, inFunctionCall); - if (!analyze_format_string::ParsePrintfString(H, Str, Str + StrLen)) + if (!analyze_format_string::ParsePrintfString(H, Str, Str + StrLen, + getLangOptions())) H.DoneProcessing(); } else { @@ -2451,7 +2452,8 @@ void Sema::CheckFormatString(const StringLiteral *FExpr, Str, HasVAListArg, TheCall, format_idx, inFunctionCall); - if (!analyze_format_string::ParseScanfString(H, Str, Str + StrLen)) + if (!analyze_format_string::ParseScanfString(H, Str, Str + StrLen, + getLangOptions())) H.DoneProcessing(); } } |