[all-commits] [llvm/llvm-project] 28fa77: [clang][modules] Avoid using uninitialized SourceL...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Oct 13 02:24:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28fa77feeb7db46abea1a6699d7a88a02d8dab46
      https://github.com/llvm/llvm-project/commit/28fa77feeb7db46abea1a6699d7a88a02d8dab46
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2021-10-13 (Wed, 13 Oct 2021)

  Changed paths:
    M clang/lib/Serialization/ASTReader.cpp

  Log Message:
  -----------
  [clang][modules] Avoid using uninitialized SourceLocation

At this point, `F.ImportLoc` has not been initialized by the `ASTReader` yet and using it leads to an assertion failure.

Introduced in 638c673a8c3e27b6532049ac17ac9bc96640fc45 and 444513510999e4c1ea23253654196793834d53bf.




More information about the All-commits mailing list