[all-commits] [llvm/llvm-project] 94603e: [Parser] Don't crash on MS assembly if target desc...

Sam McCall via All-commits all-commits at lists.llvm.org
Mon Dec 9 05:34:38 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 94603ec11b55ca22b5dbebcfca5e83f313b632e3
      https://github.com/llvm/llvm-project/commit/94603ec11b55ca22b5dbebcfca5e83f313b632e3
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2019-12-09 (Mon, 09 Dec 2019)

  Changed paths:
    M clang-tools-extra/clangd/Diagnostics.cpp
    M clang-tools-extra/clangd/unittests/CMakeLists.txt
    M clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
    M clang/lib/Parse/ParseStmtAsm.cpp

  Log Message:
  -----------
  [Parser] Don't crash on MS assembly if target desc/asm parser isn't linked in.

Summary:
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.

Fixes https://github.com/clangd/clangd/issues/222

Reviewers: kadircet

Subscribers: mgorny, ilya-biryukov, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D71189




More information about the All-commits mailing list