diff --git a/lldb/include/lldb/Interpreter/Interfaces/ScriptedProcessInterface.h b/lldb/include/lldb/Interpreter/Interfaces/ScriptedProcessInterface.h index 3e50fb9b37bbc..bedeaf25ae0cb 100644 --- a/lldb/include/lldb/Interpreter/Interfaces/ScriptedProcessInterface.h +++ b/lldb/include/lldb/Interpreter/Interfaces/ScriptedProcessInterface.h @@ -12,6 +12,7 @@ #include "ScriptedInterface.h" #include "lldb/Core/StructuredDataImpl.h" #include "lldb/Target/MemoryRegionInfo.h" +#include "lldb/Utility/UnimplementedError.h" #include "lldb/lldb-private.h" @@ -25,8 +26,7 @@ class ScriptedProcessInterface : virtual public ScriptedInterface { CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx, StructuredData::DictionarySP args_sp, StructuredData::Generic *script_obj = nullptr) { - llvm_unreachable( - "Cannot create an instance of the ScriptedProcessInterface!"); + return {llvm::make_error()}; } virtual StructuredData::DictionarySP GetCapabilities() { return {}; } diff --git a/lldb/test/Shell/Expr/TestIRMemoryMapWindows.test b/lldb/test/Shell/Expr/TestIRMemoryMapWindows.test index f9f4da3c40920..ae29492c9ccc9 100644 --- a/lldb/test/Shell/Expr/TestIRMemoryMapWindows.test +++ b/lldb/test/Shell/Expr/TestIRMemoryMapWindows.test @@ -1,5 +1,4 @@ # REQUIRES: system-windows -# XFAIL: system-windows # RUN: %clang_cl_host /Zi /GS- %p/Inputs/call-function.cpp /c /o %t.obj # RUN: %msvc_link /debug:full %t.obj /out:%t