Skip to content

Commit bc0f03e

Browse files
committed
[libSyntax] Minor ref-counting improvements
1 parent c75898d commit bc0f03e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SyntaxParse/RawSyntaxTokenCache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class RawSyntaxCacheNode : public llvm::FoldingSetNode {
4444
: Obj(Obj), IDRef(IDRef) {}
4545

4646
/// Retrieve assciated RawSyntax.
47-
RC<syntax::RawSyntax> get() { return Obj; }
47+
const RC<syntax::RawSyntax> &get() { return Obj; }
4848

4949
// Only allow allocation of Node using the allocator in SyntaxArena.
5050
void *operator new(size_t Bytes, RC<syntax::SyntaxArena> &Arena,

0 commit comments

Comments
 (0)