aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-03-28 18:22:58 +0000
committerEric Christopher <echristo@gmail.com>2013-03-28 18:22:58 +0000
commit03852c8717b45ece934f7740a100de526a734641 (patch)
tree673087801a769914c613d5cbf996265511e292d2 /lib/StaticAnalyzer/Checkers/MallocChecker.cpp
parent849c7bf718ed3c08bd66b93f0bd508a44bb2f669 (diff)
Fix order of initialization warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
-rw-r--r--lib/StaticAnalyzer/Checkers/MallocChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
index 274eb80e90..b4e45a29d6 100644
--- a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
+++ b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
@@ -58,7 +58,7 @@ class RefState {
// family.
RefState(Kind k, const Stmt *s, unsigned family)
- : K(k), S(s), Family(family) {}
+ : S(s), K(k), Family(family) {}
public:
bool isAllocated() const { return K == Allocated; }
bool isReleased() const { return K == Released; }