summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/PrintfFormatString.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2011-12-02 20:32:01 +0000
committerHans Wennborg <hans@hanshq.net>2011-12-02 20:32:01 +0000
commit4d99c7a6ddd079527d75ea311bcf73c8236bc112 (patch)
tree29ddddc618aa3c85dc37ab7ebabfc8c5621109a6 /clang/lib/Analysis/PrintfFormatString.cpp
parent9fd0e55e916093a08e22767d00d0dc2d8d62f80b (diff)
downloadbcm5719-llvm-4d99c7a6ddd079527d75ea311bcf73c8236bc112.tar.gz
bcm5719-llvm-4d99c7a6ddd079527d75ea311bcf73c8236bc112.zip
Make r145697 actually work.
Use the canonical type of the typedef to compare with the underlying type. llvm-svn: 145702
Diffstat (limited to 'clang/lib/Analysis/PrintfFormatString.cpp')
-rw-r--r--clang/lib/Analysis/PrintfFormatString.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp
index b37b23f3b18..e3d76507cd9 100644
--- a/clang/lib/Analysis/PrintfFormatString.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud