[llvm] r212889 - Try to fix MSVC warning.
Matt Arsenault
Matthew.Arsenault at amd.com
Sat Jul 12 16:16:26 PDT 2014
Author: arsenm
Date: Sat Jul 12 18:16:26 2014
New Revision: 212889
URL: http://llvm.org/viewvc/llvm-project?rev=212889&view=rev
Log:
Try to fix MSVC warning.
Modified:
llvm/trunk/include/llvm/Analysis/DominanceFrontierImpl.h
Modified: llvm/trunk/include/llvm/Analysis/DominanceFrontierImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/DominanceFrontierImpl.h?rev=212889&r1=212888&r2=212889&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/DominanceFrontierImpl.h (original)
+++ llvm/trunk/include/llvm/Analysis/DominanceFrontierImpl.h Sat Jul 12 18:16:26 2014
@@ -48,6 +48,14 @@ void DominanceFrontierBase<BlockT>::remo
}
template <class BlockT>
+void DominanceFrontierBase<BlockT>::addToFrontier(iterator I,
+ BlockT *Node) {
+ assert(I != end() && "BB is not in DominanceFrontier!");
+ assert(I->second.count(Node) && "Node is not in DominanceFrontier of BB");
+ I->second.erase(Node);
+}
+
+template <class BlockT>
void DominanceFrontierBase<BlockT>::removeFromFrontier(iterator I,
BlockT *Node) {
assert(I != end() && "BB is not in DominanceFrontier!");
More information about the llvm-commits
mailing list