File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -748,8 +748,11 @@ Interpreter::Visit(const CastNode *node) {
748748
749749 lldb::ValueObjectSP operand = *operand_or_err;
750750 // Don't actually do the cast for now -- that code will be added later.
751- // For now just return the original operand, unchanged.
752- return operand;
751+ // For now just return an error message.
752+ return llvm::make_error<DILDiagnosticError>(
753+ m_expr,
754+ " Type casting is not supported here." ,
755+ node->GetLocation ());
753756}
754757
755758} // namespace lldb_private::dil
Original file line number Diff line number Diff line change 1515#include " lldb/Symbol/CompileUnit.h"
1616#include " lldb/Target/ExecutionContextScope.h"
1717#include " lldb/Target/LanguageRuntime.h"
18- #include " lldb/Utility/DiagnosticsRendering.h"
1918#include " lldb/Host/common/DiagnosticsRendering.h"
2019#include " lldb/Target/ExecutionContextScope.h"
2120#include " lldb/ValueObject/DILAST.h"
You can’t perform that action at this time.
0 commit comments