Skip to content

Commit 27fe651

Browse files
committed
Fix clamp call
1 parent a21c77b commit 27fe651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Basic/Sanitizers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ bool clang::parseSanitizerWeightedValue(StringRef Value, bool AllowGroups,
5353
double A;
5454
if (W.getAsDouble(A))
5555
return false;
56-
float C = std::clamp()(A, 0.0, 1.0);
56+
float C = std::clamp(A, 0.0, 1.0);
5757
// AllowGroups is already taken into account for ParsedKind,
5858
// hence we unconditionally expandSanitizerGroups.
5959
SanitizerMask ExpandedKind = expandSanitizerGroups(ParsedKind);

0 commit comments

Comments
 (0)