[clang] 4624797 - Fix the buildbots after 636dd1e8a1782e22f9bdee640428ed5c50a4a4f2

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 10 05:47:02 PDT 2023


Author: Aaron Ballman
Date: 2023-04-10T08:46:53-04:00
New Revision: 4624797f816123f327d2c8b80f7ec65c90750024

URL: https://github.com/llvm/llvm-project/commit/4624797f816123f327d2c8b80f7ec65c90750024
DIFF: https://github.com/llvm/llvm-project/commit/4624797f816123f327d2c8b80f7ec65c90750024.diff

LOG: 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

Added: 
    

Modified: 
    clang/unittests/AST/DeclTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/AST/DeclTest.cpp b/clang/unittests/AST/DeclTest.cpp
index a6535119afb53..ad89596328edb 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;


        


More information about the cfe-commits mailing list