commit | caa5ab264ddea332e8423af1ebcea50d0cb37206 | [log] [tgz] |
---|---|---|
author | Aaron Ballman <aaron@aaronballman.com> | Tue Sep 03 21:02:22 2013 +0000 |
committer | Aaron Ballman <aaron@aaronballman.com> | Tue Sep 03 21:02:22 2013 +0000 |
tree | 2e013037880a83cb921b88158498263d701fd687 | |
parent | 99a7238b1acc6f4f41d39aeec6f25049375a24ec [diff] |
Switched FormatAttr to using an IdentifierArgument instead of a StringArgument since that is a more accurate modeling. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189851 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp b/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp index c67c597..1dc60c6 100644 --- a/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
@@ -619,7 +619,8 @@ const FormatAttr *Format = *i; ArgNum = Format->getFormatIdx() - 1; - if ((Format->getType() == "printf") && CE->getNumArgs() > ArgNum) + if ((Format->getType()->getName() == "printf") && + CE->getNumArgs() > ArgNum) return true; }