diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-10-25 04:20:41 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-10-25 04:20:41 +0000 |
commit | 74e82bd190017d59d5d78b07dedca5b06b4547da (patch) | |
tree | 4d25c36bde5c85b773a6c78b4babfa72d59f07e1 /clang/lib/Analysis/PrintfFormatString.cpp | |
parent | baabbb779de90b60a44c67a115a56d2e63fdfa1b (diff) | |
download | bcm5719-llvm-74e82bd190017d59d5d78b07dedca5b06b4547da.tar.gz bcm5719-llvm-74e82bd190017d59d5d78b07dedca5b06b4547da.zip |
Tweak printf format string parsing to accept 'hh' conversion specifier to accept any char, not just signed char. Fixes <rdar://problem/10303638>.
llvm-svn: 142908
Diffstat (limited to 'clang/lib/Analysis/PrintfFormatString.cpp')
-rw-r--r-- | clang/lib/Analysis/PrintfFormatString.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp index affc83e7efb..7347dca3c21 100644 --- a/clang/lib/Analysis/PrintfFormatString.cpp +++ b/clang/lib/Analysis/PrintfFormatString.cpp @@ -297,7 +297,7 @@ ArgTypeResult PrintfSpecifier::getArgType(ASTContext &Ctx) const { case LengthModifier::AsLongDouble: return ArgTypeResult::Invalid(); case LengthModifier::None: return Ctx.IntTy; - case LengthModifier::AsChar: return Ctx.SignedCharTy; + case LengthModifier::AsChar: return ArgTypeResult::AnyCharTy; case LengthModifier::AsShort: return Ctx.ShortTy; case LengthModifier::AsLong: return Ctx.LongTy; case LengthModifier::AsLongLong: return Ctx.LongLongTy; |