Skip to content

Commit 9d5ca8f

Browse files
authored
Update BackendUtil.cpp
1 parent ca2fe49 commit 9d5ca8f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -807,13 +807,9 @@ static void addSanitizers(const Triple &TargetTriple,
807807
OptimizationLevel Level,
808808
ThinOrFullLTOPhase Phase) {
809809
LowerAllowCheckPass::Options Opts;
810-
811810
// TODO: after removing IsRequested(), make this unconditional
812811
if (ScaledCutoffs.has_value())
813-
// Copy from std::vector<int> to std::vector<unsigned int>
814-
Opts.cutoffs = {ScaledCutoffs.value().begin(),
815-
ScaledCutoffs.value().end()};
816-
812+
Opts.cutoffs = ScaledCutoffs.value();
817813
MPM.addPass(createModuleToFunctionPassAdaptor(LowerAllowCheckPass(Opts)));
818814
});
819815
}

0 commit comments

Comments
 (0)