summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2018-12-10 20:53:39 +0000
committerStephen Kelly <steveire@gmail.com>2018-12-10 20:53:39 +0000
commit266dc19e4ef14448fae31402dbe8a89b39024457 (patch)
treef86c7925d742645407568a6f7167d710c88994db /clang/lib
parenta1005921eb6bd3423a91db18a5ca674c3c3395fb (diff)
downloadbcm5719-llvm-266dc19e4ef14448fae31402dbe8a89b39024457.tar.gz
bcm5719-llvm-266dc19e4ef14448fae31402dbe8a89b39024457.zip
Re-order content in OMPDeclareReductionDecl dump
Reviewers: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D55395 llvm-svn: 348795
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/ASTDumper.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp
index 1a79137adb6..2c128f49436 100644
--- a/clang/lib/AST/ASTDumper.cpp
+++ b/clang/lib/AST/ASTDumper.cpp
@@ -1040,9 +1040,10 @@ void ASTDumper::VisitOMPDeclareReductionDecl(const OMPDeclareReductionDecl *D) {
NodeDumper.dumpName(D);
NodeDumper.dumpType(D->getType());
OS << " combiner";
- dumpStmt(D->getCombiner());
- if (auto *Initializer = D->getInitializer()) {
+ NodeDumper.dumpPointer(D->getCombiner());
+ if (const auto *Initializer = D->getInitializer()) {
OS << " initializer";
+ NodeDumper.dumpPointer(Initializer);
switch (D->getInitializerKind()) {
case OMPDeclareReductionDecl::DirectInit:
OS << " omp_priv = ";
@@ -1053,8 +1054,11 @@ void ASTDumper::VisitOMPDeclareReductionDecl(const OMPDeclareReductionDecl *D) {
case OMPDeclareReductionDecl::CallInit:
break;
}
- dumpStmt(Initializer);
}
+
+ dumpStmt(D->getCombiner());
+ if (const auto *Initializer = D->getInitializer())
+ dumpStmt(Initializer);
}
void ASTDumper::VisitOMPRequiresDecl(const OMPRequiresDecl *D) {
OpenPOWER on IntegriCloud