Author: Arthur Eubanks
Date: 2022-01-26T11:43:44-08:00
New Revision: 6a953d931c4de6f4b5bdc5466d15da62ede00b95

URL: 
https://github.com/llvm/llvm-project/commit/6a953d931c4de6f4b5bdc5466d15da62ede00b95
DIFF: 
https://github.com/llvm/llvm-project/commit/6a953d931c4de6f4b5bdc5466d15da62ede00b95.diff

LOG: [clang] Fix -Wsubobject-linkage after D117262

/home/buildbot/llvm-avr-linux/llvm-avr-linux/llvm/clang/lib/CodeGen/Address.h:76:7:
 warning: 'clang::CodeGen::Address' has a field 'clang::CodeGen::Address::A' 
whose type uses the anonymous namespace [-Wsubobject-linkage]

https://lab.llvm.org/buildbot/#/builders/112/builds/12047

Added: 
    

Modified: 
    clang/lib/CodeGen/Address.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/Address.h b/clang/lib/CodeGen/Address.h
index 06b82e404cce..6a22e567d399 100644
--- a/clang/lib/CodeGen/Address.h
+++ b/clang/lib/CodeGen/Address.h
@@ -22,7 +22,6 @@
 namespace clang {
 namespace CodeGen {
 
-namespace {
 // We try to save some space by using 6 bits over two PointerIntPairs to store
 // the alignment. However, some arches don't support 3 bits in a PointerIntPair
 // so we fallback to storing the alignment separately.
@@ -70,7 +69,6 @@ template <typename T> class AddressImpl<T, true> {
     return CharUnits::fromQuantity(1UL << AlignLog);
   }
 };
-} // namespace
 
 /// An aligned address.
 class Address {


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to