[all-commits] [llvm/llvm-project] c2c36c: [clang][index] Fix a crash for accessing a null fi...

Haojian Wu via All-commits all-commits at lists.llvm.org
Thu May 21 00:48:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c2c36c4f4b69ade6d8610b1dc98ff9f02c94320d
      https://github.com/llvm/llvm-project/commit/c2c36c4f4b69ade6d8610b1dc98ff9f02c94320d
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-05-21 (Thu, 21 May 2020)

  Changed paths:
    M clang/lib/Index/IndexBody.cpp
    A clang/test/Index/index-designated-init-recovery.cpp

  Log Message:
  -----------
  [clang][index] Fix a crash for accessing a null field decl.

getField() may return a nullptr, we already did that in
BodyIndexer::VisitDesignatedInitExpr, but missed one place.




More information about the All-commits mailing list