Skip to content

Commit 88fc0ab

Browse files
committed
Specify explicit casts of types in pair construction
This was failing on some platforms.
1 parent d322453 commit 88fc0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Passes/StandardInstrumentations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ class DCData {
440440
protected:
441441
// Add a transition to \p Succ on \p Label
442442
void addSuccessorLabel(StringRef Succ, StringRef Label) {
443-
std::pair<std::string, std::string> SS{Succ, Label};
443+
std::pair<std::string, std::string> SS{Succ.str(), Label.str()};
444444
Successors.insert(SS);
445445
}
446446

0 commit comments

Comments
 (0)