Skip to content

Commit 1b233c0

Browse files
author
git apple-llvm automerger
committed
Merge commit 'e7f756d4684a' from llvm.org/main into next
2 parents 3b0748a + e7f756d commit 1b233c0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,8 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
10541054
static_assert(SanitizerKind::SO_LocalBounds <=
10551055
std::numeric_limits<
10561056
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.");
10581059
Options.GuardKind = SanitizerKind::SO_LocalBounds;
10591060
}
10601061
Options.Merge =

llvm/lib/Passes/PassBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ parseBoundsCheckingOptions(StringRef Params) {
13221322
StringRef ParamEQ;
13231323
StringRef Val;
13241324
std::tie(ParamEQ, Val) = ParamName.split('=');
1325-
int8_t Id = 0;
1325+
int8_t Id;
13261326
if (ParamEQ == "guard" && !Val.getAsInteger(0, Id)) {
13271327
Options.GuardKind = Id;
13281328
} else {

0 commit comments

Comments
 (0)