Skip to content

Commit 4f9a4de

Browse files
committed
Add missing SanitizerOrdinal to SanitizerScope
1 parent 58d76a6 commit 4f9a4de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/CGExprScalar.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,8 @@ void ScalarExprEmitter::EmitIntegerSignChangeCheck(Value *Src, QualType SrcType,
12841284
// That's it. We can't rule out any more cases with the data we have.
12851285

12861286
CodeGenFunction::SanitizerScope SanScope(
1287-
&CGF, {SanitizerKind::SO_ImplicitUnsignedIntegerTruncation,
1287+
&CGF, {SanitizerKind::SO_ImplicitIntegerSignChange,
1288+
SanitizerKind::SO_ImplicitUnsignedIntegerTruncation,
12881289
SanitizerKind::SO_ImplicitSignedIntegerTruncation});
12891290

12901291
std::pair<ScalarExprEmitter::ImplicitConversionCheckKind,

0 commit comments

Comments
 (0)