summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/DeclPrinterTest.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-12-13 16:19:34 +0000
committerAlexander Kornienko <alexfh@google.com>2016-12-13 16:19:34 +0000
commit7cdc705b03ece877a0b9753f6b30c83f8acb5178 (patch)
tree2fb7569e12e043bea1cac079ca8dbefe3b0d5650 /clang/unittests/AST/DeclPrinterTest.cpp
parent9f58fe08bf08cf5b7dd2815eb9fe19158eb2f2c1 (diff)
downloadbcm5719-llvm-7cdc705b03ece877a0b9753f6b30c83f8acb5178.tar.gz
bcm5719-llvm-7cdc705b03ece877a0b9753f6b30c83f8acb5178.zip
Remove deprecated methods ast_matchers::BoundNodes::{getStmtAs,getDeclAs}
llvm-svn: 289543
Diffstat (limited to 'clang/unittests/AST/DeclPrinterTest.cpp')
-rw-r--r--clang/unittests/AST/DeclPrinterTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/AST/DeclPrinterTest.cpp b/clang/unittests/AST/DeclPrinterTest.cpp
index dc4f9145607..e5a09a31f69 100644
--- a/clang/unittests/AST/DeclPrinterTest.cpp
+++ b/clang/unittests/AST/DeclPrinterTest.cpp
@@ -45,7 +45,7 @@ public:
PrintMatch() : NumFoundDecls(0) {}
void run(const MatchFinder::MatchResult &Result) override {
- const Decl *D = Result.Nodes.getDeclAs<Decl>("id");
+ const Decl *D = Result.Nodes.getNodeAs<Decl>("id");
if (!D || D->isImplicit())
return;
NumFoundDecls++;
OpenPOWER on IntegriCloud