Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 54b80d1

Browse files
committed
Create fewer copies of StringMaps. No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316301 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent f027325 commit 54b80d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Frontend/PrecompiledPreamble.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ PrecompiledPreamble::PrecompiledPreamble(
445445
TempPCHFile PCHFile, std::vector<char> PreambleBytes,
446446
bool PreambleEndsAtStartOfLine,
447447
llvm::StringMap<PreambleFileHash> FilesInPreamble)
448-
: PCHFile(std::move(PCHFile)), FilesInPreamble(FilesInPreamble),
448+
: PCHFile(std::move(PCHFile)), FilesInPreamble(std::move(FilesInPreamble)),
449449
PreambleBytes(std::move(PreambleBytes)),
450450
PreambleEndsAtStartOfLine(PreambleEndsAtStartOfLine) {}
451451

lib/Parse/ParseStmtAsm.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
558558
if (buildMSAsmString(PP, AsmLoc, AsmToks, TokOffsets, AsmString))
559559
return StmtError();
560560

561-
TargetOptions TO = Actions.Context.getTargetInfo().getTargetOpts();
561+
const TargetOptions &TO = Actions.Context.getTargetInfo().getTargetOpts();
562562
std::string FeaturesStr =
563563
llvm::join(TO.Features.begin(), TO.Features.end(), ",");
564564

0 commit comments

Comments
 (0)