summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny.ornl@gmail.com>2018-04-02 19:43:34 +0000
committerJoel E. Denny <jdenny.ornl@gmail.com>2018-04-02 19:43:34 +0000
commita6555114c8a99a8d04f9f247766746745156a508 (patch)
tree865d69fe789de6ca5f5295240fc3ee17aea1492f /clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
parentaf95629debb2476305ac856df4bccab6b3308545 (diff)
downloadbcm5719-llvm-a6555114c8a99a8d04f9f247766746745156a508.tar.gz
bcm5719-llvm-a6555114c8a99a8d04f9f247766746745156a508.zip
[Attr] [NFC] Revert accidental change from r327405
llvm-svn: 329005
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
index 1d51339a7dd..8fb255c4232 100644
--- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
@@ -1231,7 +1231,7 @@ MallocChecker::MallocMemReturnsAttr(CheckerContext &C, const CallExpr *CE,
if (Att->getModule() != II_malloc)
return nullptr;
- ParamIdx *I = Att->args_begin(), *E = Att->args_end();
+ OwnershipAttr::args_iterator I = Att->args_begin(), E = Att->args_end();
if (I != E) {
return MallocMemAux(C, CE, CE->getArg(I->getASTIndex()), UndefinedVal(),
State);
OpenPOWER on IntegriCloud