[llvm] 88fc0ab - Specify explicit casts of types in pair construction
Tres Popp via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 2 10:15:52 PDT 2021
Author: Tres Popp
Date: 2021-11-02T18:15:32+01:00
New Revision: 88fc0ab45db98f097c5ef898068081eb097cceeb
URL: https://github.com/llvm/llvm-project/commit/88fc0ab45db98f097c5ef898068081eb097cceeb
DIFF: https://github.com/llvm/llvm-project/commit/88fc0ab45db98f097c5ef898068081eb097cceeb.diff
LOG: Specify explicit casts of types in pair construction
This was failing on some platforms.
Added:
Modified:
llvm/include/llvm/Passes/StandardInstrumentations.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Passes/StandardInstrumentations.h b/llvm/include/llvm/Passes/StandardInstrumentations.h
index 4340b6242ad4e..6cab4ce7d138b 100644
--- a/llvm/include/llvm/Passes/StandardInstrumentations.h
+++ b/llvm/include/llvm/Passes/StandardInstrumentations.h
@@ -440,7 +440,7 @@ class DCData {
protected:
// Add a transition to \p Succ on \p Label
void addSuccessorLabel(StringRef Succ, StringRef Label) {
- std::pair<std::string, std::string> SS{Succ, Label};
+ std::pair<std::string, std::string> SS{Succ.str(), Label.str()};
Successors.insert(SS);
}
More information about the llvm-commits
mailing list