Skip to content

Commit

Permalink
Fix build break on pickier MSVC configurations [NFC]
Browse files Browse the repository at this point in the history
clang::StreamingDiagnostic doesn't have a uint8_t overload,
which makes MSVC without /permissive- decide it's ambiguous.
Pre-approved in replies to D153276.
  • Loading branch information
pogo59 committed Aug 8, 2023
1 parent 84d444f commit 4e8cae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/AST/Interp/Interp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,7 @@ inline bool Invalid(InterpState &S, CodePtr OpPC) {
inline bool InvalidCast(InterpState &S, CodePtr OpPC, CastKind Kind) {
const SourceLocation &Loc = S.Current->getLocation(OpPC);
S.FFDiag(Loc, diag::note_constexpr_invalid_cast)
<< static_cast<uint8_t>(Kind) << S.Current->getRange(OpPC);
<< static_cast<unsigned>(Kind) << S.Current->getRange(OpPC);
return false;
}

Expand Down

0 comments on commit 4e8cae4

Please sign in to comment.