From 719772c269ac2e6498ee81b5add4607c76fe402f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 3 Oct 2014 22:20:30 +0000 Subject: [PATCH] Remove stray enum keywords. MSVC sees this as a redeclaration at global scope. llvm-svn: 219031 --- clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index 435a253a6ba0..aee5a43048b9 100644 --- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -249,7 +249,7 @@ private: bool isCMemFunction(const FunctionDecl *FD, ASTContext &C, AllocationFamily Family, - enum MemoryOperationKind) const; + MemoryOperationKind MemKind) const; bool isStandardNewDelete(const FunctionDecl *FD, ASTContext &C) const; ///@} ProgramStateRef MallocMemReturnsAttr(CheckerContext &C, @@ -526,7 +526,7 @@ bool MallocChecker::isMemFunction(const FunctionDecl *FD, ASTContext &C) const { bool MallocChecker::isCMemFunction(const FunctionDecl *FD, ASTContext &C, AllocationFamily Family, - enum MemoryOperationKind MemKind) const { + MemoryOperationKind MemKind) const { if (!FD) return false;