Author: Roman Lebedev Date: 2020-01-24T18:18:15+03:00 New Revision: a8c3608a27a82cf1c66f33b96a06423fe0e708fc
URL: https://github.com/llvm/llvm-project/commit/a8c3608a27a82cf1c66f33b96a06423fe0e708fc DIFF: https://github.com/llvm/llvm-project/commit/a8c3608a27a82cf1c66f33b96a06423fe0e708fc.diff LOG: [Sema] Provide declarations for MaximumAlignment, MaxAlignmentExponent variables clang-armv7-linux-build-cache bot is complaining about undefined references to these variables during linking, so by explicitly placing them in some TU we should be able to fix that. Added: Modified: clang/lib/Sema/Sema.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 9cfce5a63b1d..e24db7190496 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -142,6 +142,9 @@ class SemaPPCallbacks : public PPCallbacks { } // end namespace sema } // end namespace clang +const unsigned Sema::MaxAlignmentExponent; +const unsigned Sema::MaximumAlignment; + Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, TranslationUnitKind TUKind, CodeCompleteConsumer *CodeCompleter) : ExternalSource(nullptr), isMultiplexExternalSource(false), _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits