Skip to content

Commit ff5ab0b

Browse files
committed
Basic: adjust aliasing annotation (NFCI)
GCC `-fpermissive` flagged this annotation as being discarded as it is being applied after the definition. Move the annotation to the re-definition to which it appertains.
1 parent 746b58e commit ff5ab0b

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)