forked from OSchip/llvm-project
Try to fix build failure caused by r322097
Avoid mapping during output when Detail is nullptr; otherwise, an empty "Detail" field will be populated in YAML output. llvm-svn: 322116
This commit is contained in:
parent
56cca7437c
commit
72b3855bf5
|
@ -92,6 +92,7 @@ template <> struct MappingTraits<Symbol> {
|
|||
|
||||
IO.mapOptional("CompletionSnippetInsertText",
|
||||
Sym.CompletionSnippetInsertText);
|
||||
if (!IO.outputting() || Sym.Detail)
|
||||
IO.mapOptional("Detail", Sym.Detail);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue