Skip to content

Commit dcb946a

Browse files
committed
[clang][Interp] Try to fix a build failure on Windows
1 parent 9782993 commit dcb946a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/AST/Interp/IntegralAP.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ template <bool Signed> class IntegralAP final {
3939
using AsUnsigned = IntegralAP<false>;
4040

4141
template <typename T>
42-
IntegralAP(T Value) : V(APInt(sizeof(T) * 8, Value, std::is_signed_v<T>)) {}
42+
IntegralAP(T Value)
43+
: V(APInt(sizeof(T) * 8, static_cast<uint64_t>(Value),
44+
std::is_signed_v<T>)) {}
4345

4446
IntegralAP(APInt V) : V(V) {}
4547
IntegralAP(APSInt V) : V(V) {}

0 commit comments

Comments
 (0)