Skip to content

Commit 6b5262c

Browse files
committed
[ClangImporter] Do not import DynamicRangePointerType and ValueTerminatedType
DynamicRangePointerType and ValueTerminatedType are new Clang types for -fbounds-safety, annotated with the 'ended_by' and the 'terminated_by' attributes. This adds visitors for these types in ClangImporter so Swift still builds with Clang that has these new types.
1 parent 8a0a083 commit 6b5262c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/ClangImporter/ImportType.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,22 @@ namespace {
421421
return Type();
422422
}
423423

424+
ImportResult VisitDynamicRangePointerType(
425+
const clang::DynamicRangePointerType *type) {
426+
// DynamicRangePointerType is a clang type representing a pointer with
427+
// a Firebloom "ended_by" type attribute. For now, we don't import these
428+
// into Swift.
429+
return Type();
430+
}
431+
432+
ImportResult VisitValueTerminatedType(
433+
const clang::ValueTerminatedType *type) {
434+
// ValueTerminatedType is a clang type representing a pointer with
435+
// a Firebloom "terminated_by" type attribute. For now, we don't import
436+
// these into Swift.
437+
return Type();
438+
}
439+
424440
ImportResult VisitMemberPointerType(const clang::MemberPointerType *type) {
425441
return Type();
426442
}

0 commit comments

Comments
 (0)