r322427 - Remove unused addIfPresent function.
Eric Christopher via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 12 16:46:47 PST 2018
Author: echristo
Date: Fri Jan 12 16:46:47 2018
New Revision: 322427
URL: http://llvm.org/viewvc/llvm-project?rev=322427&view=rev
Log:
Remove unused addIfPresent function.
Modified:
cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=322427&r1=322426&r2=322427&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Fri Jan 12 16:46:47 2018
@@ -4179,10 +4179,6 @@ void FragileHazards::emitHazardsInNewBlo
}
}
-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());
}
More information about the cfe-commits
mailing list