From 1239de15928a31ba7e7a70e402ffe532ea29db49 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Fri, 11 Dec 2009 00:55:44 +0000 Subject: [PATCH] Use 'class' instead of 'struct'. llvm-svn: 91085 --- clang/lib/Analysis/MallocChecker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/lib/Analysis/MallocChecker.cpp b/clang/lib/Analysis/MallocChecker.cpp index 204c7b320e65..6fd43c11db3d 100644 --- a/clang/lib/Analysis/MallocChecker.cpp +++ b/clang/lib/Analysis/MallocChecker.cpp @@ -22,10 +22,11 @@ using namespace clang; namespace { -struct RefState { +class RefState { enum Kind { Allocated, Released, Escaped } K; const Stmt *S; +public: RefState(Kind k, const Stmt *s) : K(k), S(s) {} bool isAllocated() const { return K == Allocated; }