Fix typo that was being SFINAE'd away (and apparently GCC 4.7.2 rejects-valid on this).
llvm-svn: 254053
This commit is contained in:
parent
17436ce174
commit
cb50b511de
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue