From 61c4bb43481f85170504db3eeb179aeba2620fb9 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 12 Jun 2017 17:44:42 +0000 Subject: [PATCH] [llvm-ar] Fix AddNewMember typo in enum llvm-svn: 305209 --- tools/llvm-ar/llvm-ar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index 3de260410bd..074c3ae3c67 100644 --- a/tools/llvm-ar/llvm-ar.cpp +++ b/tools/llvm-ar/llvm-ar.cpp @@ -494,7 +494,7 @@ static void addMember(std::vector &Members, enum InsertAction { IA_AddOldMember, - IA_AddNewMeber, + IA_AddNewMember, IA_Delete, IA_MoveOldMember, IA_MoveNewMember @@ -526,7 +526,7 @@ static InsertAction computeInsertAction(ArchiveOperation Operation, StringRef PosName = sys::path::filename(RelPos); if (!OnlyUpdate) { if (PosName.empty()) - return IA_AddNewMeber; + return IA_AddNewMember; return IA_MoveNewMember; } @@ -543,7 +543,7 @@ static InsertAction computeInsertAction(ArchiveOperation Operation, } if (PosName.empty()) - return IA_AddNewMeber; + return IA_AddNewMember; return IA_MoveNewMember; } llvm_unreachable("No such operation"); @@ -580,7 +580,7 @@ computeNewArchiveMembers(ArchiveOperation Operation, case IA_AddOldMember: addMember(Ret, Child); break; - case IA_AddNewMeber: + case IA_AddNewMember: addMember(Ret, *MemberI); break; case IA_Delete: