]> granicus.if.org Git - clang/commitdiff
Fix order of initialization warning.
authorEric Christopher <echristo@gmail.com>
Thu, 28 Mar 2013 18:22:58 +0000 (18:22 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 28 Mar 2013 18:22:58 +0000 (18:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178255 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/MallocChecker.cpp

index 274eb80e90850637eabadd3f3a689dacef1a7d64..b4e45a29d60124b2722de6783f4335457545c849 100644 (file)
@@ -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; }