From: Mitch Phillips <31459023+hctim@users.noreply.github.com> Date: Thu, 10 Dec 2020 23:42:02 +0000 (-0800) Subject: Revert "[NFC] Fix a gcc build break by not using an initializer." X-Git-Tag: llvmorg-13-init~3719 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9aafa9fc15228e69393782026930fbe2ab403dac;p=platform%2Fupstream%2Fllvm.git Revert "[NFC] Fix a gcc build break by not using an initializer." This reverts commit 1dc0a8521f616af5897327e4c03098f9312e9c59. Reason: Dependency of patch that broke the ASan buildbots: http://lab.llvm.org:8011/#/builders/5/builds/2269 --- diff --git a/llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp index 5c3952b..69adc77 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.emplace_back(CallerGuid, CallerProbeId); + ReversedInlineStack.push_back({CallerGuid, CallerProbeId}); InlinedAt = InlinedAt->getInlinedAt(); }