[Macros] Diagnose how ExternalMacroDefinition request was failed

Return the failure reason as the result.
This commit is contained in:
Rintaro Ishizaki
2023-09-29 09:13:03 -07:00
parent d4adba20fc
commit bdd4c005e5
12 changed files with 122 additions and 55 deletions

View File

@@ -30,7 +30,7 @@ static StringRef sandboxProfile(llvm::BumpPtrAllocator &Alloc) {
// This is required to launch any processes (execve(2)).
contents += "(allow process-exec*)\n";
return NullTerminatedStringRef(contents, Alloc);
return NullTerminatedStringRef(StringRef(contents), Alloc);
}
#endif