Skip to content

Commit b7d00e4

Browse files
committed
Remove unnecessary use of LLVM_LVALUE_FUNCTION
We're already using lvalue functions elsewhere in the codebase, so this isn't adding value. In the "next" branch, this macro has been removed, so this fixes a build error in that case.
1 parent 5ce7bf9 commit b7d00e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/swift/Syntax/AbsoluteRawSyntax.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,11 @@ class OptionalStorage<AbsoluteRawSyntax> {
397397

398398
bool hasValue() const { return !Storage.isNull(); }
399399

400-
AbsoluteRawSyntax &getValue() LLVM_LVALUE_FUNCTION {
400+
AbsoluteRawSyntax &getValue() & {
401401
assert(hasValue());
402402
return Storage;
403403
}
404-
AbsoluteRawSyntax const &getValue() const LLVM_LVALUE_FUNCTION {
404+
AbsoluteRawSyntax const &getValue() const & {
405405
assert(hasValue());
406406
return Storage;
407407
}

include/swift/Syntax/SyntaxData.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ class OptionalStorage<SyntaxDataRef> {
416416

417417
bool hasValue() const { return !Storage.getAbsoluteRaw().isNull(); }
418418

419-
SyntaxDataRef &getValue() LLVM_LVALUE_FUNCTION {
419+
SyntaxDataRef &getValue() & {
420420
assert(hasValue());
421421
return Storage;
422422
}
423-
SyntaxDataRef const &getValue() const LLVM_LVALUE_FUNCTION {
423+
SyntaxDataRef const &getValue() const & {
424424
assert(hasValue());
425425
return Storage;
426426
}

0 commit comments

Comments
 (0)