Skip to content

Commit d5af843

Browse files
committed
Reword comment
1 parent 37e9fd8 commit d5af843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,12 +808,12 @@ static void addSanitizers(const Triple &TargetTriple,
808808
ThinOrFullLTOPhase Phase) {
809809
LowerAllowCheckPass::Options Opts;
810810

811+
// TODO: after removing IsRequested(), the if case will be unconditional
811812
if (scaledCutoffs.has_value()) {
812813
// Copy from std::vector<int> to std::vector<unsigned int>
813814
Opts.cutoffs = {scaledCutoffs.value().begin(),
814815
scaledCutoffs.value().end()};
815816
} else {
816-
// TODO: remove this after we remove IsRequested()
817817
for (unsigned int i = 0; i < SanitizerKind::SO_Count; ++i) {
818818
Opts.cutoffs.push_back(0);
819819
}

0 commit comments

Comments
 (0)