From b52a5c636064ca7138eb996d74941bbe6f07080c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 2 Oct 2023 14:37:33 +0200 Subject: [PATCH] [clang][Interp] Try to fix another build failure on Windows --- clang/lib/AST/Interp/IntegralAP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/Interp/IntegralAP.h b/clang/lib/AST/Interp/IntegralAP.h index b2b367f30c238f..a9e34a5b237a19 100644 --- a/clang/lib/AST/Interp/IntegralAP.h +++ b/clang/lib/AST/Interp/IntegralAP.h @@ -66,7 +66,7 @@ template class IntegralAP final { template 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(Value), Signed), !Signed); return IntegralAP(Copy); }