Skip to content

Commit 5cc0e25

Browse files
authored
Merge pull request swiftlang#28937 from compnerd/appertaining-annotation-always
Basic: adjust aliasing annotation (NFCI)
2 parents 21ae729 + ff5ab0b commit 5cc0e25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Basic/PrefixMap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ enum class ChildKind { Left, Right, Further, Root };
3434
// that's technically instantiation-specific. Redefining the struct here
3535
// is technically an aliasing violation, but we can just tell the compilers
3636
// that actually use TBAA that this is okay.
37-
typedef struct _Node Node LLVM_MAY_ALIAS;
38-
struct _Node {
37+
typedef struct _Node Node;
38+
struct LLVM_MAY_ALIAS _Node {
3939
// If you change the layout in the header, you'll need to change it here.
4040
// (This comment is repeated there.)
4141
Node *Left, *Right, *Further;

0 commit comments

Comments
 (0)