From: Richard Smith Date: Wed, 25 Nov 2015 02:41:42 +0000 (+0000) Subject: Fix typo that was being SFINAE'd away (and apparently GCC 4.7.2 rejects-valid on... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=711fc0e26d74e3ffe1154007b6f07e879ad68276;p=clang Fix typo that was being SFINAE'd away (and apparently GCC 4.7.2 rejects-valid on this). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254053 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index be62999bca..ab7a9eebe0 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/include/clang/AST/RecursiveASTVisitor.h @@ -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(&Derived::Traverse##NAME))::value \ + (decltype(callableWithQueue(&Derived::Traverse##NAME))::value \ ? static_cast(&Derived::Traverse##NAME))::value, \ + callableWithQueue(&Derived::Traverse##NAME))::value, \ Derived &, RecursiveASTVisitor &>::type>(*this) \ .Traverse##NAME(static_cast(VAR), QUEUE) \ : getDerived().Traverse##NAME(static_cast(VAR)))