summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-11-25 02:41:42 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-11-25 02:41:42 +0000
commitcb50b511de7f99594588fe770dee46690e9f942e (patch)
tree68585f9250675f061f50e00b0098e1883e31829c
parent17436ce174fd5712205718edfcabd7ef10de0802 (diff)
downloadbcm5719-llvm-cb50b511de7f99594588fe770dee46690e9f942e.tar.gz
bcm5719-llvm-cb50b511de7f99594588fe770dee46690e9f942e.zip
Fix typo that was being SFINAE'd away (and apparently GCC 4.7.2 rejects-valid on this).
llvm-svn: 254053
-rw-r--r--clang/include/clang/AST/RecursiveASTVisitor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/AST/RecursiveASTVisitor.h b/clang/include/clang/AST/RecursiveASTVisitor.h
index be62999bca0..ab7a9eebe04 100644
--- a/clang/include/clang/AST/RecursiveASTVisitor.h
+++ b/clang/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<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)))
OpenPOWER on IntegriCloud