Skip to content

Commit e7f756d

Browse files
authored
[NFC][BoundsChecking] Address #122576 review comments (#122773)
1 parent 2a5281d commit e7f756d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: clang/lib/CodeGen/BackendUtil.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,8 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
10321032
static_assert(SanitizerKind::SO_LocalBounds <=
10331033
std::numeric_limits<
10341034
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.");
10361037
Options.GuardKind = SanitizerKind::SO_LocalBounds;
10371038
}
10381039
Options.Merge =

Diff for: llvm/lib/Passes/PassBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ parseBoundsCheckingOptions(StringRef Params) {
13201320
StringRef ParamEQ;
13211321
StringRef Val;
13221322
std::tie(ParamEQ, Val) = ParamName.split('=');
1323-
int8_t Id = 0;
1323+
int8_t Id;
13241324
if (ParamEQ == "guard" && !Val.getAsInteger(0, Id)) {
13251325
Options.GuardKind = Id;
13261326
} else {

0 commit comments

Comments
 (0)