This repository was archived by the owner on Feb 5, 2019. It is now read-only.
File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -579,6 +579,11 @@ if (LLVM_ENABLE_WARNINGS AND (LLVM_COMPILER_IS_GCC_COMPATIBLE OR CLANG_CL))
579
579
append_if(USE_NO_UNINITIALIZED "-Wno-uninitialized" CMAKE_CXX_FLAGS )
580
580
append_if(USE_NO_MAYBE_UNINITIALIZED "-Wno-maybe-uninitialized" CMAKE_CXX_FLAGS )
581
581
582
+ # Disable -Wclass-memaccess, a C++-only warning from GCC 8 that fires on
583
+ # LLVM's ADT classes.
584
+ check_cxx_compiler_flag("-Wclass-memaccess" CXX_SUPPORTS_CLASS_MEMACCESS_FLAG)
585
+ append_if(CXX_SUPPORTS_CLASS_MEMACCESS_FLAG "-Wno-class-memaccess" CMAKE_CXX_FLAGS )
586
+
582
587
# Check if -Wnon-virtual-dtor warns even though the class is marked final.
583
588
# If it does, don't add it. So it won't be added on clang 3.4 and older.
584
589
# This also catches cases when -Wnon-virtual-dtor isn't supported by
Original file line number Diff line number Diff line change @@ -110,18 +110,12 @@ class GlobalValue : public Constant {
110
110
unsigned IsDSOLocal : 1 ;
111
111
112
112
private:
113
- friend class Constant ;
114
-
115
- void maybeSetDsoLocal () {
116
- if (hasLocalLinkage () ||
117
- (!hasDefaultVisibility () && !hasExternalWeakLinkage ()))
118
- setDSOLocal (true );
119
- }
120
-
121
113
// Give subclasses access to what otherwise would be wasted padding.
122
114
// (17 + 4 + 2 + 2 + 2 + 3 + 1 + 1) == 32.
123
115
unsigned SubClassData : GlobalValueSubClassDataBits;
124
116
117
+ friend class Constant ;
118
+
125
119
void destroyConstantImpl ();
126
120
Value *handleOperandChangeImpl (Value *From, Value *To);
127
121
@@ -149,6 +143,12 @@ class GlobalValue : public Constant {
149
143
llvm_unreachable (" Fully covered switch above!" );
150
144
}
151
145
146
+ void maybeSetDsoLocal () {
147
+ if (hasLocalLinkage () ||
148
+ (!hasDefaultVisibility () && !hasExternalWeakLinkage ()))
149
+ setDSOLocal (true );
150
+ }
151
+
152
152
protected:
153
153
// / The intrinsic ID for this subclass (which must be a Function).
154
154
// /
You can’t perform that action at this time.
0 commit comments