]> granicus.if.org Git - clang/commitdiff
Remove unused addIfPresent function.
authorEric Christopher <echristo@gmail.com>
Sat, 13 Jan 2018 00:46:47 +0000 (00:46 +0000)
committerEric Christopher <echristo@gmail.com>
Sat, 13 Jan 2018 00:46:47 +0000 (00:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322427 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index ef4e6cd4f01b3aa35eab4438cec951b8dc1df930..37ba33dfd97ca87aebc6b27172f48436f6935a1a 100644 (file)
@@ -4179,10 +4179,6 @@ void FragileHazards::emitHazardsInNewBlocks() {
   }
 }
 
-static void addIfPresent(llvm::DenseSet<llvm::Value*> &S, llvm::Value *V) {
-  if (V) S.insert(V);
-}
-
 static void addIfPresent(llvm::DenseSet<llvm::Value*> &S, Address V) {
   if (V.isValid()) S.insert(V.getPointer());
 }