aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/clang/lib/AST/PrintfFormatString.cpp
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2020-05-09 19:26:44 +0000
committerConrad Meyer <cem@FreeBSD.org>2020-05-09 19:26:44 +0000
commit134a253edc5f885d497e112f3db97679bff912c0 (patch)
treea15f2a7796634e6a2de4cca33b047ae38a15195d /contrib/llvm-project/clang/lib/AST/PrintfFormatString.cpp
parent26a578697cbd1799fd491cf192780ac41bde17fc (diff)
Notes
Diffstat (limited to 'contrib/llvm-project/clang/lib/AST/PrintfFormatString.cpp')
-rw-r--r--contrib/llvm-project/clang/lib/AST/PrintfFormatString.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/clang/lib/AST/PrintfFormatString.cpp b/contrib/llvm-project/clang/lib/AST/PrintfFormatString.cpp
index bae60d464407..dabc39c57ef7 100644
--- a/contrib/llvm-project/clang/lib/AST/PrintfFormatString.cpp
+++ b/contrib/llvm-project/clang/lib/AST/PrintfFormatString.cpp
@@ -316,8 +316,8 @@ static PrintfSpecifierResult ParsePrintfSpecifier(FormatStringHandler &H,
case 'g': k = ConversionSpecifier::gArg; break;
case 'i': k = ConversionSpecifier::iArg; break;
case 'n':
- // Not handled, but reserved in OpenCL.
- if (!LO.OpenCL)
+ // Not handled, but reserved in OpenCL and FreeBSD kernel.
+ if (!LO.OpenCL && !isFreeBSDKPrintf)
k = ConversionSpecifier::nArg;
break;
case 'o': k = ConversionSpecifier::oArg; break;