Skip to content

Commit 3654621

Browse files
[X86][NFC] Use Triple & to avoid copy (#134532)
1 parent 5748ddb commit 3654621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ std::vector<std::pair<uint64_t, uint64_t>>
631631
X86MCInstrAnalysis::findPltEntries(uint64_t PltSectionVA,
632632
ArrayRef<uint8_t> PltContents,
633633
const MCSubtargetInfo &STI) const {
634-
const auto TargetTriple = STI.getTargetTriple();
634+
const Triple &TargetTriple = STI.getTargetTriple();
635635
switch (TargetTriple.getArch()) {
636636
case Triple::x86:
637637
return findX86PltEntries(PltSectionVA, PltContents);

0 commit comments

Comments
 (0)