MemorySSA: Update expensive checking version of def_chain_iterator for templating...
authorDaniel Berlin <dberlin@dberlin.org>
Sat, 1 Apr 2017 10:04:28 +0000 (10:04 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Sat, 1 Apr 2017 10:04:28 +0000 (10:04 +0000)
llvm-svn: 299301

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

index 25142cd..ac3c1cd 100644 (file)
@@ -1092,7 +1092,7 @@ template <class T>
 inline iterator_range<def_chain_iterator<T>>
 def_chain(T MA, MemoryAccess *UpTo = nullptr) {
 #ifdef EXPENSIVE_CHECKS
-  assert((!UpTo || find(def_chain(MA), UpTo) != def_chain_iterator()) &&
+  assert((!UpTo || find(def_chain(MA), UpTo) != def_chain_iterator<T>()) &&
          "UpTo isn't in the def chain!");
 #endif
   return make_range(def_chain_iterator<T>(MA), def_chain_iterator<T>(UpTo));