[all-commits] [llvm/llvm-project] 5048a5: [analyzer] Don't crash if the analyzer-constraint ...

Kristóf Umann via All-commits all-commits at lists.llvm.org
Fri Feb 25 07:52:28 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5048a58a6792ee7432b749a48c937cc9b6a9dc93
      https://github.com/llvm/llvm-project/commit/5048a58a6792ee7432b749a48c937cc9b6a9dc93
  Author: Kristóf Umann <dkszelethus at gmail.com>
  Date:   2022-02-25 (Fri, 25 Feb 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/lib/Frontend/CompilerInvocation.cpp
    A clang/test/Analysis/missing-z3-nocrash.c
    M clang/test/lit.cfg.py

  Log Message:
  -----------
  [analyzer] Don't crash if the analyzer-constraint is set to Z3, but llvm is not built with it

Exactly what it says on the tin! We had a nasty crash with the following incovation:

$ clang --analyze -Xclang -analyzer-constraints=z3 test.c
fatal error: error in backend: LLVM was not compiled with Z3 support, rebuild with -DLLVM_ENABLE_Z3_SOLVER=ON
... <stack trace> ...

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




More information about the All-commits mailing list