Skip to content

Commit 5de3195

Browse files
committed
!fixup formatting and add release note.
1 parent d69f729 commit 5de3195

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,10 @@ Sanitizers
11541154
<https://clang.llvm.org/docs/SanitizerSpecialCaseList.html>`_. See that link
11551155
for examples.
11561156

1157+
- Introduced an experimental Type Sanitizer, activated by using the
1158+
-fsanitize=type flag. This sanitizer detects violations of C/C++ type-based
1159+
aliasing rules.
1160+
11571161
Python Binding Changes
11581162
----------------------
11591163
- Fixed an issue that led to crashes when calling ``Type.get_exception_specification_kind``.

clang/lib/CodeGen/SanitizerMetadata.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ void SanitizerMetadata::reportGlobalToASan(llvm::GlobalVariable *GV,
9191
return NoSanitizeMask;
9292
};
9393

94-
reportGlobalToASan(GV, D.getLocation(), QualName, D.getType(), getNoSanitizeMask(D),
95-
IsDynInit);
94+
reportGlobalToASan(GV, D.getLocation(), QualName, D.getType(),
95+
getNoSanitizeMask(D), IsDynInit);
9696
}
9797

9898
void SanitizerMetadata::reportGlobalToTySan(llvm::GlobalVariable *GV,

clang/lib/Driver/SanitizerArgs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ static const SanitizerMask NotAllowedWithMinimalRuntime = SanitizerKind::Vptr;
3737
static const SanitizerMask NotAllowedWithExecuteOnly =
3838
SanitizerKind::Function | SanitizerKind::KCFI;
3939
static const SanitizerMask NeedsUnwindTables =
40-
SanitizerKind::Address | SanitizerKind::HWAddress | SanitizerKind::Type | SanitizerKind::Thread |
41-
SanitizerKind::Memory | SanitizerKind::DataFlow |
40+
SanitizerKind::Address | SanitizerKind::HWAddress | SanitizerKind::Type |
41+
SanitizerKind::Thread | SanitizerKind::Memory | SanitizerKind::DataFlow |
4242
SanitizerKind::NumericalStability;
4343
static const SanitizerMask SupportsCoverage =
4444
SanitizerKind::Address | SanitizerKind::HWAddress |

0 commit comments

Comments
 (0)