commit | 0bd6b110e908892d4b5c8671a9f435a1d72ad16a | [log] [tgz] |
---|---|---|
author | Anna Zaks <ganna@apple.com> | Wed Oct 26 21:06:34 2011 +0000 |
committer | Anna Zaks <ganna@apple.com> | Wed Oct 26 21:06:34 2011 +0000 |
tree | f93bf142c8d42d80266a9b442c0e98244731d58d | |
parent | 1d08123ae7ba455fff8c61fb546521ef95496f08 [diff] [blame] |
[analyzer] Rename generateNode -> addTransition in CheckerContext Also document addTransition methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143059 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp b/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp index 202522b..845ae4f 100644 --- a/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp
@@ -50,7 +50,7 @@ if (isa<VarRegion>(LR) || isa<CodeTextRegion>(LR) || isa<CompoundLiteralRegion>(LR)) { - if (ExplodedNode *N = C.generateNode()) { + if (ExplodedNode *N = C.addTransition()) { if (!BT) BT.reset(new BuiltinBug("Dangerous pointer arithmetic", "Pointer arithmetic done on non-array variables "