Instead, emit a diagnostic and return an empty ASM node, as we do if the target
is missing.
Filter this diagnostic out in clangd, where it's not meaningful.
| Paths 
 |  Differential  D71189  
[Parser] Don't crash on MS assembly if target desc/asm parser isn't linked in. ClosedPublic Authored by sammccall on Dec 9 2019, 2:57 AM. 
Details Summary Instead, emit a diagnostic and return an empty ASM node, as we do if the target Filter this diagnostic out in clangd, where it's not meaningful. 
Diff Detail 
 Event Timeline
 Comment Actions Build result: pass - 60607 tests passed, 0 failed and 726 were skipped. Log files: console-log.txt, CMakeCache.txt Comment Actions Build result: pass - 60607 tests passed, 0 failed and 726 were skipped. Log files: console-log.txt, CMakeCache.txt sammccall added inline comments. 
 Comment Actions Build result: pass - 60607 tests passed, 0 failed and 726 were skipped. Log files: console-log.txt, CMakeCache.txt This revision is now accepted and ready to land.Dec 9 2019, 4:39 AM Closed by commit rG94603ec11b55: [Parser] Don't crash on MS assembly if target desc/asm parser isn't linked in. (authored by sammccall).  ·  Explain WhyDec 9 2019, 5:36 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 232798 clang-tools-extra/clangd/Diagnostics.cpp
 clang-tools-extra/clangd/unittests/CMakeLists.txt
 clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
 clang/lib/Parse/ParseStmtAsm.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nit: empty line