================
@@ -4091,7 +4091,7 @@ ExprResult Sema::ActOnNumericConstant(const Token &Tok,
Scope *UDLScope) {
!Context.getTargetInfo().hasInt128Type())
PP.Diag(Tok.getLocation(), diag::err_integer_literal_too_large)
<< Literal.isUnsigned;
- BitsNeeded = Literal.MicrosoftInteger;
+ BitsNeeded = std::max<unsigned>(BitsNeeded, Literal.MicrosoftInteger);
----------------
Sirraide wrote:
I suppose we can leave that as follow-up work yeah, but we should still have a
comment here to explain this behaviour
https://github.com/llvm/llvm-project/pull/212743
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits