Rename Set variable to be plural
authorMehdi Amini <mehdi.amini@apple.com>
Thu, 3 Dec 2015 02:40:39 +0000 (02:40 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Thu, 3 Dec 2015 02:40:39 +0000 (02:40 +0000)
Thanks Sean Silva for catching this.

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254584 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-link/llvm-link.cpp

index 39034aa..6f90f40 100644 (file)
@@ -198,10 +198,10 @@ static bool importFunctions(const char *argv0, LLVMContext &Context,
     }
 
     // Link in the specified function.
-    DenseSet<const GlobalValue *> FunctionToImport;
-    FunctionToImport.insert(F);
+    DenseSet<const GlobalValue *> FunctionsToImport;
+    FunctionsToImport.insert(F);
     if (L.linkInModule(*M, Linker::Flags::None, Index.get(),
-                       &FunctionToImport))
+                       &FunctionsToImport))
       return false;
   }
   return true;