Skip to content

Commit 0786d45

Browse files
author
git apple-llvm automerger
committed
Merge commit '217c6d643124' from llvm.org/main into next
2 parents 6619e4a + 217c6d6 commit 0786d45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,28 @@ void MarkAsLive(Type &&) {}
9292
template <typename TypeToPrint> void ComparePrettyPrintToChars(
9393
TypeToPrint value,
9494
const char *expectation) {
95+
MarkAsLive(value);
9596
StopForDebugger(&value, &expectation);
9697
}
9798

9899
template <typename TypeToPrint> void ComparePrettyPrintToRegex(
99100
TypeToPrint value,
100101
const char *expectation) {
102+
MarkAsLive(value);
101103
StopForDebugger(&value, &expectation);
102104
}
103105

104106
void CompareExpressionPrettyPrintToChars(
105107
std::string value,
106108
const char *expectation) {
109+
MarkAsLive(value);
107110
StopForDebugger(&value, &expectation);
108111
}
109112

110113
void CompareExpressionPrettyPrintToRegex(
111114
std::string value,
112115
const char *expectation) {
116+
MarkAsLive(value);
113117
StopForDebugger(&value, &expectation);
114118
}
115119

0 commit comments

Comments
 (0)