Skip to content

Commit

Permalink
[clang][Interp] Try to fix a build failure on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Oct 2, 2023
1 parent 9782993 commit dcb946a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clang/lib/AST/Interp/IntegralAP.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down

0 comments on commit dcb946a

Please sign in to comment.