[PATCH] D85319: [analyzer] Get info from the LLVM IR for precision

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 5 09:17:40 PDT 2020


martong marked 3 inline comments as done.
martong added a comment.

In D85319#2196648 <https://reviews.llvm.org/D85319#2196648>, @whisperity wrote:

> What will happen with the ability to analyse a translation unit whose target was not part of `LLVM_TARGETS_TO_BUILD` of the current `clang` binary? Will it break, because the binary lacks the information on how to generate for the given target?

We get the target info from the `CompilerInstance` that is used for the command line of the analysis. So if clang cannot handle that then we'll probably get a diagnostics anyway by the `AnalysisASTConsumer`s diag engine.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85319/new/

https://reviews.llvm.org/D85319



More information about the cfe-commits mailing list