llvm-project/clang/lib
Erich Keane 41af971375 Limit types of builtins that can be redeclared.
As reported here: https://bugs.llvm.org/show_bug.cgi?id=37033
Any usage of a builtin function that uses a va_list by reference
will cause an assertion when redeclaring it.

After discussion in the review, it was concluded that the correct
way of accomplishing this fix is to make attempts to redeclare certain
builtins an error. Unfortunately, doing this limitation for all builtins
is likely a breaking change, so this commit simply limits it to
types with custom type checking and those that take a reference.

Two tests needed to be updated to make this work.

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

llvm-svn: 330160
2018-04-16 21:30:08 +00:00
..
ARCMigrate Fix typos in clang 2018-04-06 15:14:32 +00:00
AST Limit types of builtins that can be redeclared. 2018-04-16 21:30:08 +00:00
ASTMatchers Fix typos in clang 2018-04-06 15:14:32 +00:00
Analysis Fix the try_acquire_capability attribute to behave like the other try-lock functions. Fixes PR32954. 2018-04-12 17:53:21 +00:00
Basic Limit types of builtins that can be redeclared. 2018-04-16 21:30:08 +00:00
CodeGen [OPENMP] Allow to use declare target variables in map clauses 2018-04-16 20:34:41 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver [Hexagon] Emit a warning when -fvectorize is given without -mhvx 2018-04-16 19:11:17 +00:00
Edit [Edit, Rewrite] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-27 00:01:49 +00:00
Format [clang-format] Improve Incomplete detection for (text) protos 2018-04-13 13:37:09 +00:00
Frontend Use export_as for autolinking frameworks 2018-04-16 19:42:32 +00:00
FrontendTool Make a build bot happy. 2018-02-10 14:26:53 +00:00
Headers [X86] Introduce cldemote intrinsic 2018-04-13 07:37:24 +00:00
Index [Index] Return SourceLocation to consumers, not FileID/Offset pair. 2018-04-09 14:12:51 +00:00
Lex Defer adding keywords to the identifier table until after the language options have been loaded from the AST file. 2018-04-16 21:07:08 +00:00
Parse Revert r329684 (and follow-ups 329693, 329714). See discussion on https://reviews.llvm.org/D43578. 2018-04-10 18:53:28 +00:00
Rewrite [Edit, Rewrite] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-27 00:01:49 +00:00
Sema Limit types of builtins that can be redeclared. 2018-04-16 21:30:08 +00:00
Serialization Use export_as for autolinking frameworks 2018-04-16 19:42:32 +00:00
StaticAnalyzer Clean carriage returns from lib/ and include/. NFC. 2018-04-16 08:31:08 +00:00
Tooling [Tooling] Correct the "-std" compile command option. 2018-04-11 09:18:18 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00