Author: Timm Bäder
Date: 2023-10-02T08:09:49+02:00
New Revision: dcb946a175ae98d432b0a6f8d92105afc992db3e

URL: 
https://github.com/llvm/llvm-project/commit/dcb946a175ae98d432b0a6f8d92105afc992db3e
DIFF: 
https://github.com/llvm/llvm-project/commit/dcb946a175ae98d432b0a6f8d92105afc992db3e.diff

LOG: [clang][Interp] Try to fix a 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 53ad76d8a1997eb..b2b367f30c238fe 100644
--- a/clang/lib/AST/Interp/IntegralAP.h
+++ b/clang/lib/AST/Interp/IntegralAP.h
@@ -39,7 +39,9 @@ template <bool Signed> class IntegralAP final {
   using AsUnsigned = IntegralAP<false>;
 
   template <typename T>
-  IntegralAP(T Value) : V(APInt(sizeof(T) * 8, Value, std::is_signed_v<T>)) {}
+  IntegralAP(T Value)
+      : V(APInt(sizeof(T) * 8, static_cast<uint64_t>(Value),
+                std::is_signed_v<T>)) {}
 
   IntegralAP(APInt V) : V(V) {}
   IntegralAP(APSInt V) : V(V) {}


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to