Skip to content

Commit 74cd26a

Browse files
committed
Rename to CheckKind
1 parent 9380a10 commit 74cd26a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/CodeGen/CGExpr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,10 +1228,10 @@ void CodeGenFunction::EmitBoundsCheckImpl(const Expr *E, llvm::Value *Bound,
12281228
SanitizerScope SanScope(this);
12291229

12301230
llvm::DILocation *CheckDI = Builder.getCurrentDebugLocation();
1231-
auto CurrentCheckKind = SanitizerKind::SO_ArrayBounds;
1231+
auto CheckKind = SanitizerKind::SO_ArrayBounds;
12321232
// TODO: deprecate ClArrayBoundsPseudoFn
12331233
if ((ClArrayBoundsPseudoFn ||
1234-
CGM.getCodeGenOpts().SanitizeAnnotateDebugInfo.has(CurrentCheckKind)) &&
1234+
CGM.getCodeGenOpts().SanitizeAnnotateDebugInfo.has(CheckKind)) &&
12351235
CheckDI) {
12361236
CheckDI = getDebugInfo()->CreateSyntheticInlineAt(
12371237
Builder.getCurrentDebugLocation(), "__ubsan_check_array_bounds");
@@ -1249,7 +1249,7 @@ void CodeGenFunction::EmitBoundsCheckImpl(const Expr *E, llvm::Value *Bound,
12491249
};
12501250
llvm::Value *Check = Accessed ? Builder.CreateICmpULT(IndexVal, BoundVal)
12511251
: Builder.CreateICmpULE(IndexVal, BoundVal);
1252-
EmitCheck(std::make_pair(Check, CurrentCheckKind),
1252+
EmitCheck(std::make_pair(Check, CheckKind),
12531253
SanitizerHandler::OutOfBounds, StaticData, Index);
12541254
}
12551255

0 commit comments

Comments
 (0)