[llvm-branch-commits] [llvm] 1dc0a85 - [NFC] Fix a gcc build break by not using an initializer.
Hongtao Yu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Dec 10 11:59:29 PST 2020
Author: Hongtao Yu
Date: 2020-12-10T11:54:41-08:00
New Revision: 1dc0a8521f616af5897327e4c03098f9312e9c59
URL: https://github.com/llvm/llvm-project/commit/1dc0a8521f616af5897327e4c03098f9312e9c59
DIFF: https://github.com/llvm/llvm-project/commit/1dc0a8521f616af5897327e4c03098f9312e9c59.diff
LOG: [NFC] Fix a gcc build break by not using an initializer.
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
Added:
Modified:
llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp
index 69adc77730d1..5c3952b12e07 100644
--- a/llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp
@@ -62,7 +62,7 @@ void PseudoProbeHandler::emitPseudoProbe(uint64_t Guid, uint64_t Index,
uint64_t CallerGuid = Names[Name];
uint64_t CallerProbeId = PseudoProbeDwarfDiscriminator::extractProbeIndex(
InlinedAt->getDiscriminator());
- ReversedInlineStack.push_back({CallerGuid, CallerProbeId});
+ ReversedInlineStack.emplace_back(CallerGuid, CallerProbeId);
InlinedAt = InlinedAt->getInlinedAt();
}
More information about the llvm-branch-commits
mailing list