Attempt to fix builds broken by r259595.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 2 Feb 2016 23:15:26 +0000 (23:15 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 2 Feb 2016 23:15:26 +0000 (23:15 +0000)
llvm-svn: 259599

llvm/include/llvm/Transforms/Utils/MemorySSA.h
llvm/lib/Transforms/Utils/MemorySSA.cpp

index 893908c..b87640c 100644 (file)
@@ -840,7 +840,7 @@ public:
     return DefIterator == Other.DefIterator;
   }
 
-  typename BaseT::iterator::reference operator*() const {
+  BaseT::iterator::reference operator*() const {
     assert(DefIterator != OriginalAccess->defs_end() &&
            "Tried to access past the end of our iterator");
     return CurrentPair;
index 0ef4688..6022206 100644 (file)
@@ -379,7 +379,7 @@ bool MemorySSA::dominatesUse(const MemoryAccess *Replacer,
   // Since we may occur multiple times in the phi node, we have to check each
   // operand to ensure Replacer dominates each operand where Replacee occurs.
   for (const Use &Arg : MP->operands()) {
-    if (Arg != Replacee &&
+    if (Arg.get() != Replacee &&
         !DT->dominates(Replacer->getBlock(), MP->getIncomingBlock(Arg)))
       return false;
   }