[all-commits] [llvm/llvm-project] 14b947: [analyzer] Fix StdLibraryFunctionsChecker crash on...

Valeriy Savchenko via All-commits all-commits at lists.llvm.org
Tue Jun 16 06:10:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 14b947f306ac7bc2e4eb55ac1e4255fd762b217b
      https://github.com/llvm/llvm-project/commit/14b947f306ac7bc2e4eb55ac1e4255fd762b217b
  Author: Valeriy Savchenko <vsavchenko at apple.com>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
    A clang/test/Analysis/pch_crash.cpp

  Log Message:
  -----------
  [analyzer] Fix StdLibraryFunctionsChecker crash on macOS

Summary:
EOF macro token coming from a PCH file on macOS while marked as literal,
doesn't contain any literal data.  This causes crash on every project
using PCHs.

This commit doesn't resolve the problem with PCH (maybe it was
designed like this for a purpose) or with `tryExpandAsInteger`, but
rather simply shoots off a crash itself.

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




More information about the All-commits mailing list