[llvm-branch-commits] [llvm] 35debdf - [NFC] Fix build break by a initializer list converting error

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jan 13 14:33:10 PST 2021


Author: wlei
Date: 2021-01-13T14:28:02-08:00
New Revision: 35debdfcaca10203a67ef3821d272a72d70e0490

URL: https://github.com/llvm/llvm-project/commit/35debdfcaca10203a67ef3821d272a72d70e0490
DIFF: https://github.com/llvm/llvm-project/commit/35debdfcaca10203a67ef3821d272a72d70e0490.diff

LOG: [NFC] Fix build break by a initializer list converting error

Added: 
    

Modified: 
    llvm/tools/llvm-profgen/PseudoProbe.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-profgen/PseudoProbe.cpp b/llvm/tools/llvm-profgen/PseudoProbe.cpp
index ae4f7eb08f7b..0b53f1aa02e7 100644
--- a/llvm/tools/llvm-profgen/PseudoProbe.cpp
+++ b/llvm/tools/llvm-profgen/PseudoProbe.cpp
@@ -219,7 +219,7 @@ void PseudoProbeDecoder::buildAddress2ProbeMap(const uint8_t *Start,
       Index = readUnsignedNumber<uint32_t>();
     }
     // Switch/add to a new tree node(inlinee)
-    Cur = Cur->getOrAddNode({Cur->GUID, Index});
+    Cur = Cur->getOrAddNode(std::make_tuple(Cur->GUID, Index));
     // Read guid
     Cur->GUID = readUnencodedNumber<uint64_t>();
     // Read number of probes in the current node.


        


More information about the llvm-branch-commits mailing list