diff options
author | Hans Wennborg <hans@hanshq.net> | 2011-12-02 20:32:01 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2011-12-02 20:32:01 +0000 |
commit | 377cc6e3e8a6d9d0c90a315d29ce84836383d059 (patch) | |
tree | 7382b0a174811db471f16e5229fc8c158944c644 /lib/Analysis/PrintfFormatString.cpp | |
parent | 10ce9321551efffa6ed2cff39084400e1dfcf307 (diff) |
Make r145697 actually work.
Use the canonical type of the typedef to compare with the underlying type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PrintfFormatString.cpp')
-rw-r--r-- | lib/Analysis/PrintfFormatString.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/PrintfFormatString.cpp b/lib/Analysis/PrintfFormatString.cpp index b37b23f3b1..e3d76507cd 100644 --- a/lib/Analysis/PrintfFormatString.cpp +++ b/lib/Analysis/PrintfFormatString.cpp @@ -290,7 +290,7 @@ static QualType FindTypedef(Sema &S, const char *Name, QualType Underlying) { if (TypedefDecl *TD = dyn_cast_or_null<TypedefDecl>(D)) { QualType TypedefType = Ctx.getTypedefType(TD, QualType()); - if (TD->getUnderlyingType() == Underlying) + if (Ctx.getCanonicalType(TypedefType) == Underlying) return TypedefType; } |