File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1032,7 +1032,8 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
1032
1032
static_assert (SanitizerKind::SO_LocalBounds <=
1033
1033
std::numeric_limits<
1034
1034
decltype (Options.GuardKind )::value_type>::max (),
1035
- " Update type of llvm.allow.ubsan.check." );
1035
+ " Update type of llvm.allow.ubsan.check to represent "
1036
+ " SanitizerKind::SO_LocalBounds." );
1036
1037
Options.GuardKind = SanitizerKind::SO_LocalBounds;
1037
1038
}
1038
1039
Options.Merge =
Original file line number Diff line number Diff line change @@ -1320,7 +1320,7 @@ parseBoundsCheckingOptions(StringRef Params) {
1320
1320
StringRef ParamEQ;
1321
1321
StringRef Val;
1322
1322
std::tie (ParamEQ, Val) = ParamName.split (' =' );
1323
- int8_t Id = 0 ;
1323
+ int8_t Id;
1324
1324
if (ParamEQ == " guard" && !Val.getAsInteger (0 , Id)) {
1325
1325
Options.GuardKind = Id;
1326
1326
} else {
You can’t perform that action at this time.
0 commit comments