Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/clang/lib/AST/ExprConstant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3784,6 +3784,8 @@ static bool HandleIntrinsicCall(SourceLocation CallLoc, unsigned opcode,
assert(Args.size() == 1 && "else call should be invalid");
if (ArgValues[0].isInt()) {
Result = ArgValues[0];
// The result of bitwise cast to uint will be unsigned.
Result.getInt().setIsSigned(false);
}
else if (ArgValues[0].isFloat()) {
const bool isUnsignedTrue = true;
Expand Down