Skip to content

Commit 0a8e04d

Browse files
authored
Merge pull request #2829 from apple/rdar76517425
[lldb] Remove suggestion to run with '-d run-target'
2 parents 2adea06 + ea0cc76 commit 0a8e04d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lldb/source/Plugins/ExpressionParser/Swift/SwiftExpressionParser.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -680,12 +680,8 @@ static llvm::Optional<llvm::Error> AddVariableInfo(
680680
// Not realizing self is a fatal error for an expression and the
681681
// Swift compiler error alone is not particularly useful.
682682
if (is_self)
683-
return make_error<StringError>(
684-
inconvertibleErrorCode(),
685-
llvm::Twine("Couldn't realize type of self.") +
686-
(use_dynamic
687-
? ""
688-
: " Try evaluating the expression with -d run-target"));
683+
return make_error<StringError>(inconvertibleErrorCode(),
684+
"Couldn't realize type of self.");
689685
return {};
690686
}
691687

0 commit comments

Comments
 (0)