Skip to content

Commit 48fb94f

Browse files
committed
fixup! fix build failures
1 parent e156553 commit 48fb94f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,16 +1761,14 @@ bool CPlusPlusLanguage::GetFunctionDisplayName(
17611761
FunctionNameRepresentation representation, Stream &s) {
17621762
switch (representation) {
17631763
case FunctionNameRepresentation::eNameWithArgs: {
1764-
assert(sc);
1765-
17661764
// Print the function name with arguments in it
1767-
if (sc->function)
1768-
return PrintFunctionNameWithArgs(s, exe_ctx, *sc);
1765+
if (sc.function)
1766+
return PrintFunctionNameWithArgs(s, exe_ctx, sc);
17691767

1770-
if (!sc->symbol)
1768+
if (!sc.symbol)
17711769
return false;
17721770

1773-
const char *cstr = sc->symbol->GetName().AsCString(nullptr);
1771+
const char *cstr = sc.symbol->GetName().AsCString(nullptr);
17741772
if (!cstr)
17751773
return false;
17761774

0 commit comments

Comments
 (0)