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 @@ -1054,7 +1054,8 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
1054
1054
static_assert (SanitizerKind::SO_LocalBounds <=
1055
1055
std::numeric_limits<
1056
1056
decltype (Options.GuardKind )::value_type>::max (),
1057
- " Update type of llvm.allow.ubsan.check." );
1057
+ " Update type of llvm.allow.ubsan.check to represent "
1058
+ " SanitizerKind::SO_LocalBounds." );
1058
1059
Options.GuardKind = SanitizerKind::SO_LocalBounds;
1059
1060
}
1060
1061
Options.Merge =
Original file line number Diff line number Diff line change @@ -1322,7 +1322,7 @@ parseBoundsCheckingOptions(StringRef Params) {
1322
1322
StringRef ParamEQ;
1323
1323
StringRef Val;
1324
1324
std::tie (ParamEQ, Val) = ParamName.split (' =' );
1325
- int8_t Id = 0 ;
1325
+ int8_t Id;
1326
1326
if (ParamEQ == " guard" && !Val.getAsInteger (0 , Id)) {
1327
1327
Options.GuardKind = Id;
1328
1328
} else {
You can’t perform that action at this time.
0 commit comments