]> granicus.if.org Git - clang/commitdiff
Fix typo that was being SFINAE'd away (and apparently GCC 4.7.2 rejects-valid on...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 25 Nov 2015 02:41:42 +0000 (02:41 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 25 Nov 2015 02:41:42 +0000 (02:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254053 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/RecursiveASTVisitor.h

index be62999bca04e506433b08226945690c35d24ea8..ab7a9eebe04ecd43a2c4cee5fcf996b01a7d99b7 100644 (file)
@@ -291,10 +291,10 @@ private:
   // class can take a queue, so if we're taking the second arm, make the first
   // arm call our function rather than the derived class version.
 #define TRAVERSE_STMT_BASE(NAME, CLASS, VAR, QUEUE)                            \
-  (decltype(callableWithQueue<CLASS *>(&Derived::Traverse##NAME))::value       \
+  (decltype(callableWithQueue<CLASS>(&Derived::Traverse##NAME))::value         \
        ? static_cast<typename std::conditional<                                \
              decltype(                                                         \
-                 callableWithQueue<CLASS *>(&Derived::Traverse##NAME))::value, \
+                 callableWithQueue<CLASS>(&Derived::Traverse##NAME))::value,   \
              Derived &, RecursiveASTVisitor &>::type>(*this)                   \
              .Traverse##NAME(static_cast<CLASS *>(VAR), QUEUE)                 \
        : getDerived().Traverse##NAME(static_cast<CLASS *>(VAR)))