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
4 changes: 3 additions & 1 deletion clang/lib/Headers/hlsl/hlsl_intrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,9 @@ smoothstep(__detail::HLSL_FIXED_VECTOR<float, N> Min,
}

inline bool CheckAccessFullyMapped(uint Status) {
return static_cast<bool>(Status);
// The bool cast should only apply to the LSB.
uint TruncStatus = Status % 2;
return static_cast<bool>(TruncStatus);
}

//===----------------------------------------------------------------------===//
Expand Down
Loading