llvm-project/clang/lib
Yonghong Song bbab17c6c9 [Clang][Attr] fix a btf_type_attr CGDebugInfo codegen bug
Nathan Chancellor reported a crash due to commit
3466e00716 (Reland "[Attr] support btf_type_tag attribute").

The following test can reproduce the crash:
  $ cat efi.i
  typedef unsigned long efi_query_variable_info_t(int);
  typedef struct {
    struct {
      efi_query_variable_info_t __attribute__((regparm(0))) * query_variable_info;
    };
  } efi_runtime_services_t;
  efi_runtime_services_t efi_0;
  $ clang -m32 -O2 -g -c -o /dev/null efi.i

The reason is that FunctionTypeLoc.getParam(Idx) may return a
nullptr which should be checked before dereferencing the
result pointer. This patch fixed this issue.
2021-11-06 18:19:00 -07:00
..
APINotes [clang][APINotes] Fix -Wunused-function warning (NFC) 2021-04-01 09:52:43 +08:00
ARCMigrate [clang] [Objective C] Inclusive language: use objcmt-allowlist-dir-path=<arg> instead of objcmt-white-list-dir-path=<arg> 2021-11-05 12:27:05 -04:00
AST [NFC] Inclusive language: Remove instances of master in URLs 2021-11-05 08:48:41 -05:00
ASTMatchers [clang] Use StringRef::contains (NFC) 2021-10-21 08:58:19 -07:00
Analysis [clang] Add range accessor for ObjCAtTryStmt catch_stmts and use it 2021-10-27 08:57:05 -04:00
Basic [OpenMP] Add parsing/sema/serialization for 'bind' clause. 2021-11-04 14:40:30 -07:00
CodeGen [Clang][Attr] fix a btf_type_attr CGDebugInfo codegen bug 2021-11-06 18:19:00 -07:00
CrossTU PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
DirectoryWatcher Revert "Re-Revert "DirectoryWatcher: add an implementation for Windows"" 2021-06-19 09:19:52 -07:00
Driver [clang] [Objective C] Inclusive language: use objcmt-allowlist-dir-path=<arg> instead of objcmt-white-list-dir-path=<arg> 2021-11-05 12:27:05 -04:00
Edit [clang] Use llvm::is_contained (NFC) 2021-10-13 20:41:55 -07:00
Format [NFC] Inclusive language: Remove instances of master in URLs 2021-11-05 08:48:41 -05:00
Frontend [Preprocessor] Fix newline before/after _Pragma. 2021-11-05 00:43:40 -05:00
FrontendTool [clang] Add plugin ActionType to run command line plugin before main action 2021-10-20 08:58:20 -07:00
Headers [OpenCL] Fix parsing of opencl-c.h as CL 3.0 with device-scope atomics enabled 2021-11-04 14:17:45 +00:00
Index [clang] Visit enum base specifiers in libIndex 2021-10-25 13:16:14 +02:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Interpreter Reinstate "[clang-repl] Re-implement clang-interpreter as a test case." 2021-10-26 19:29:56 +00:00
Lex [clang][deps] Keep #pragma push_macro, pop_macro and include_alias when minimizing source code. 2021-11-01 16:04:52 -04:00
Parse [OpenMP] Add parsing/sema/serialization for 'bind' clause. 2021-11-04 14:40:30 -07:00
Rewrite [clang] Use StringRef::contains (NFC) 2021-10-21 08:58:19 -07:00
Sema [Clang] Fix instantiation of OpaqueValueExprs (Bug #45964) 2021-11-06 10:06:38 +02:00
Serialization [OpenMP] Add parsing/sema/serialization for 'bind' clause. 2021-11-04 14:40:30 -07:00
StaticAnalyzer [analyzer] Dump checker name if multiple checkers evaluate the same call 2021-11-02 14:42:14 +01:00
Testing
Tooling [clang] Use llvm::{count,count_if,find_if,all_of,none_of} (NFC) 2021-10-25 09:14:45 -07:00
CMakeLists.txt [clang-repl] Recommit "Land initial infrastructure for incremental parsing" 2021-05-13 06:30:29 +00:00