Skip to content

Commit

Permalink
[clang] Fix -Wsubobject-linkage after D117262
Browse files Browse the repository at this point in the history
/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
  • Loading branch information
aeubanks committed Jan 26, 2022
1 parent ff52ef3 commit 6a953d9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions clang/lib/CodeGen/Address.h
Expand Up @@ -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.
Expand Down Expand Up @@ -70,7 +69,6 @@ template <typename T> class AddressImpl<T, true> {
return CharUnits::fromQuantity(1UL << AlignLog);
}
};
} // namespace

/// An aligned address.
class Address {
Expand Down

0 comments on commit 6a953d9

Please sign in to comment.