[clang] [clang][ExprConstant] Fix error on static constexpr symbol in dllimport function (PR #171628)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 15 06:40:42 PST 2025


================
@@ -2407,8 +2407,11 @@ static bool CheckLValueConstantExpression(EvalInfo &Info, SourceLocation Loc,
         return false;
 
       // A dllimport variable never acts like a constant, unless we're
-      // evaluating a value for use only in name mangling.
-      if (!isForManglingOnly(Kind) && Var->hasAttr<DLLImportAttr>())
+      // evaluating a value for use only in name mangling, and unless we're a
----------------
zmodem wrote:

s/we're/it's/

https://github.com/llvm/llvm-project/pull/171628


More information about the cfe-commits mailing list