Author: Timm Bäder Date: 2023-10-02T15:11:17+02:00 New Revision: b52a5c636064ca7138eb996d74941bbe6f07080c
URL: https://github.com/llvm/llvm-project/commit/b52a5c636064ca7138eb996d74941bbe6f07080c DIFF: https://github.com/llvm/llvm-project/commit/b52a5c636064ca7138eb996d74941bbe6f07080c.diff LOG: [clang][Interp] Try to fix another build failure on Windows Added: Modified: clang/lib/AST/Interp/IntegralAP.h Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/IntegralAP.h b/clang/lib/AST/Interp/IntegralAP.h index b2b367f30c238fe..a9e34a5b237a195 100644 --- a/clang/lib/AST/Interp/IntegralAP.h +++ b/clang/lib/AST/Interp/IntegralAP.h @@ -66,7 +66,7 @@ template <bool Signed> class IntegralAP final { template <typename T> static IntegralAP from(T Value, unsigned NumBits = 0) { assert(NumBits > 0); - APSInt Copy = APSInt(APInt(NumBits, Value, Signed), !Signed); + APSInt Copy = APSInt(APInt(NumBits, static_cast<int64_t>(Value), Signed), !Signed); return IntegralAP<Signed>(Copy); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits