mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-14 01:46:41 +00:00

This change fixes the problem in https://bugs.llvm.org/show_bug.cgi?id=38332 by allowing driver::Action::BackendJobClass to run with the analyzer. Otherwise, such jobs will look up the non-existing compilation database and then run without flags. Also filter out the -Wa,* flags that could be passed to and ignored by the clang compiler. Clang-tidy gives warnings about unused -Wa,* flags. Differential Revision: http://reviews.llvm.org/D51002 llvm-svn: 340421
8 lines
379 B
C++
8 lines
379 B
C++
// RUN: clang-check -analyze "%s" -- -c 2>&1 | FileCheck %s
|
|
// RUN: clang-check -analyze "%s" -- -c -flto -Wa,--noexecstack 2>&1 | FileCheck %s
|
|
// RUN: clang-check -analyze "%s" -- -c -no-integrated-as -flto=thin 2>&1 | FileCheck %s
|
|
// RUN: clang-check -analyze "%s" -- -c -flto=full 2>&1 | FileCheck %s
|
|
|
|
// CHECK: Dereference of null pointer
|
|
void a(int *x) { if(x){} *x = 47; }
|