diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 | 
| commit | 461a67fa15370a9ec88f8f8a240bf7c123bb2029 (patch) | |
| tree | 6942083d7d56bba40ec790a453ca58ad3baf6832 /lib/Analysis/PrintfFormatString.cpp | |
| parent | 75c3240472ba6ac2669ee72ca67eb72d4e2851fc (diff) | |
Notes
Diffstat (limited to 'lib/Analysis/PrintfFormatString.cpp')
| -rw-r--r-- | lib/Analysis/PrintfFormatString.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/PrintfFormatString.cpp b/lib/Analysis/PrintfFormatString.cpp index 50a3aa20bd19..dfaed26564e6 100644 --- a/lib/Analysis/PrintfFormatString.cpp +++ b/lib/Analysis/PrintfFormatString.cpp @@ -505,9 +505,7 @@ ArgType PrintfSpecifier::getArgType(ASTContext &Ctx,                     ? ArgType(Ctx.UnsignedLongLongTy, "unsigned __int64")                     : ArgType(Ctx.UnsignedIntTy, "unsigned __int32");        case LengthModifier::AsPtrDiff: -        // FIXME: How to get the corresponding unsigned -        // version of ptrdiff_t? -        return ArgType(); +        return ArgType(Ctx.getUnsignedPointerDiffType(), "unsigned ptrdiff_t");        case LengthModifier::AsAllocate:        case LengthModifier::AsMAllocate:        case LengthModifier::AsWide: @@ -654,6 +652,7 @@ bool PrintfSpecifier::fixType(QualType QT, const LangOptions &LangOpt,    case BuiltinType::UInt128:    case BuiltinType::Int128:    case BuiltinType::Half: +  case BuiltinType::Float16:    case BuiltinType::Float128:      // Various types which are non-trivial to correct.      return false;  | 
