Skip to content

Commit 0acd38d

Browse files
authored
Merge pull request #64917 from DougGregor/thank-you-asan
Stop binding a constant reference to a temporary that goes away.
2 parents ecea643 + d12ee9b commit 0acd38d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTScopeCreation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ ASTSourceFileScope::ASTSourceFileScope(SourceFile *SF,
270270
case MacroRole::Peer: {
271271
ASTContext &ctx = SF->getASTContext();
272272
SourceManager &sourceMgr = ctx.SourceMgr;
273-
const auto &generatedSourceInfo =
273+
auto generatedSourceInfo =
274274
*sourceMgr.getGeneratedSourceInfo(*SF->getBufferID());
275275

276276
ASTNode node = ASTNode::getFromOpaqueValue(generatedSourceInfo.astNode);

0 commit comments

Comments
 (0)