================
@@ -11,6 +11,7 @@
 
//===----------------------------------------------------------------------===//
 
 #include "SystemZ.h"
+#include "clang/AST/Decl.h"
----------------
efriedma-quic wrote:

If I recall correctly, in certain build configurations, like if you enable 
shared libraries, circular dependencies in libraries can cause link errors.  So 
we structure code to avoid them.

I'd suggest just splitting getMinGlobalAlign into two functions: 
getMinGlobalAlign() for all globals, and getMinGlobalAlignDefinition() that 
only applies to variable definitions.  Then you can put the VarDecl checks into 
the ASTContext code.

https://github.com/llvm/llvm-project/pull/73511
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to