summaryrefslogtreecommitdiff
path: root/clang/examples
diff options
context:
space:
mode:
authorTyker <tyker1@outlook.com>2020-10-27 09:46:06 +0100
committerTyker <tyker1@outlook.com>2020-10-27 09:49:33 +0100
commit2618247c61c25cf9bd4cb315ee51cff2b3ab3add (patch)
treec2b5be0e224e70a7bad613a0d2a71e7acf6142bd /clang/examples
parent2c2dc7c392a3f28d4dbec3018e3137d5d4f8c6c8 (diff)
downloadllvm-2618247c61c25cf9bd4cb315ee51cff2b3ab3add.tar.gz
Correct examples after d3205bbca3e0002d76282878986993e7e7994779
Diffstat (limited to 'clang/examples')
-rw-r--r--clang/examples/AnnotateFunctions/AnnotateFunctions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/examples/AnnotateFunctions/AnnotateFunctions.cpp b/clang/examples/AnnotateFunctions/AnnotateFunctions.cpp
index 1724704fe124..d872020c2d8a 100644
--- a/clang/examples/AnnotateFunctions/AnnotateFunctions.cpp
+++ b/clang/examples/AnnotateFunctions/AnnotateFunctions.cpp
@@ -32,8 +32,8 @@ public:
return true;
for (auto D : DG)
if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D))
- FD->addAttr(AnnotateAttr::CreateImplicit(FD->getASTContext(),
- "example_annotation"));
+ FD->addAttr(AnnotateAttr::CreateImplicit(
+ FD->getASTContext(), "example_annotation", nullptr, 0));
return true;
}
};