diff options
author | Bruno Ricci <riccibrun@gmail.com> | 2019-01-28 18:40:26 +0000 |
---|---|---|
committer | Bruno Ricci <riccibrun@gmail.com> | 2019-01-28 18:40:26 +0000 |
commit | 586d949b9c554d5e5b7b445a49c122ce3d0e5c53 (patch) | |
tree | 263b96fd67d4eec5829b13a3e447d47db359bdd4 /clang/lib/AST/StmtPrinter.cpp | |
parent | 7db82d7257f9a2793858159f96dc65e117b27918 (diff) | |
download | bcm5719-llvm-586d949b9c554d5e5b7b445a49c122ce3d0e5c53.tar.gz bcm5719-llvm-586d949b9c554d5e5b7b445a49c122ce3d0e5c53.zip |
Revert "[AST] Introduce GenericSelectionExpr::Association"
This breaks GCC 4.8.4. Reported by email by Hans Wennborg.
llvm-svn: 352403
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r-- | clang/lib/AST/StmtPrinter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp index acf19aaaf41..221d134d338 100644 --- a/clang/lib/AST/StmtPrinter.cpp +++ b/clang/lib/AST/StmtPrinter.cpp @@ -1261,15 +1261,15 @@ void StmtPrinter::VisitUnaryExprOrTypeTraitExpr(UnaryExprOrTypeTraitExpr *Node){ void StmtPrinter::VisitGenericSelectionExpr(GenericSelectionExpr *Node) { OS << "_Generic("; PrintExpr(Node->getControllingExpr()); - for (const GenericSelectionExpr::Association &Assoc : Node->associations()) { + for (unsigned i = 0; i != Node->getNumAssocs(); ++i) { OS << ", "; - QualType T = Assoc.getType(); + QualType T = Node->getAssocType(i); if (T.isNull()) OS << "default"; else T.print(OS, Policy); OS << ": "; - PrintExpr(Assoc.getAssociationExpr()); + PrintExpr(Node->getAssocExpr(i)); } OS << ")"; } |