diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2023-04-10 08:45:56 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2023-04-10 08:46:53 -0400 |
commit | 4624797f816123f327d2c8b80f7ec65c90750024 (patch) | |
tree | 8c8cc061f62deae9527bd6ae695a25e8334c4dab /clang/unittests/AST | |
parent | 3defc3b707fb29e64cb90822bbce12d040057357 (diff) | |
download | llvm-4624797f816123f327d2c8b80f7ec65c90750024.tar.gz |
Fix the buildbots after 636dd1e8a1782e22f9bdee640428ed5c50a4a4f2
This addresses issues found by:
http://45.33.8.238/linux/103908/step_4.txt
https://lab.llvm.org/buildbot/#/builders/216/builds/19607
and others
Diffstat (limited to 'clang/unittests/AST')
-rw-r--r-- | clang/unittests/AST/DeclTest.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/unittests/AST/DeclTest.cpp b/clang/unittests/AST/DeclTest.cpp index a6535119afb5..ad89596328ed 100644 --- a/clang/unittests/AST/DeclTest.cpp +++ b/clang/unittests/AST/DeclTest.cpp @@ -88,10 +88,12 @@ TEST(Decl, AsmLabelAttr) { NamedDecl *DeclG = *(++DeclS->method_begin()); // Attach asm labels to the decls: one literal, and one not. - DeclF->addAttr(::new (Ctx) AsmLabelAttr(Ctx, SourceLocation(), "foo", - /*LiteralLabel=*/true)); - DeclG->addAttr(::new (Ctx) AsmLabelAttr(Ctx, SourceLocation(), "goo", - /*LiteralLabel=*/false)); + DeclF->addAttr(::new (Ctx) AsmLabelAttr( + Ctx, AttributeCommonInfo{SourceLocation()}, "foo", + /*LiteralLabel=*/true)); + DeclG->addAttr(::new (Ctx) AsmLabelAttr( + Ctx, AttributeCommonInfo{SourceLocation()}, "goo", + /*LiteralLabel=*/false)); // Mangle the decl names. std::string MangleF, MangleG; |