llvm-project/clang/lib
Yaxun Liu 6d96f16347 CodeGen: Cast alloca to expected address space
Alloca always returns a pointer in alloca address space, which may
be different from the type defined by the language. For example,
in C++ the auto variables are in the default address space. Therefore
cast alloca to the expected address space when necessary.

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

llvm-svn: 303370
2017-05-18 18:51:09 +00:00
..
ARCMigrate [ARCMigrate] When applying changes from remap files, disable the 'adjustRemovals' functionality of EditedSource 2017-04-28 00:25:06 +00:00
AST CodeGen: Cast alloca to expected address space 2017-05-18 18:51:09 +00:00
ASTMatchers Add cxxStdInitializerListExpr AST matcher 2017-05-05 21:01:12 +00:00
Analysis Fix PR13910: Don't warn that __builtin_unreachable() is unreachable 2017-04-11 15:36:06 +00:00
Basic CodeGen: Cast alloca to expected address space 2017-05-18 18:51:09 +00:00
CodeGen CodeGen: Cast alloca to expected address space 2017-05-18 18:51:09 +00:00
Driver clang-cl: Fix path-based MSVC version detection 2017-05-17 15:27:44 +00:00
Edit [ARCMigrate] When applying changes from remap files, disable the 'adjustRemovals' functionality of EditedSource 2017-04-28 00:25:06 +00:00
Format [clang-format] Fix MatchingOpeningBlockLineIndex computation 2017-05-18 15:16:24 +00:00
Frontend [Frontend] Remove unused TemporaryFiles 2017-05-17 14:51:44 +00:00
FrontendTool unique_ptrify createDriverOptTable 2017-01-13 17:34:15 +00:00
Headers (1) Fixed mismatch in intrinsics names in declarations and in doxygen comments. 2017-05-17 01:46:11 +00:00
Index [index] Record references to class receivers used in property references 2017-05-18 10:43:11 +00:00
Lex [Lexer] Ensure that the token is not an annotation token when 2017-05-17 11:08:36 +00:00
Parse Prune unused \param(s) of clang::Parser::ParseTemplateIdAfterTemplateName() in r302737. [-Wdocumentation] 2017-05-11 02:43:47 +00:00
Rewrite [analyzer] Re-apply r283092, attempt no.4, chunk no.4 (last) 2016-10-07 19:25:10 +00:00
Sema CodeGen: Cast alloca to expected address space 2017-05-18 18:51:09 +00:00
Serialization [modules] Switch from inferring owning modules based on source location to 2017-05-18 02:29:20 +00:00
StaticAnalyzer [Statistics] Use the new Statistic::updateMax to atomically calculate a maximum value statistic. 2017-05-18 01:11:52 +00:00
Tooling [tooling] RefactoringCallbacks code cleanup 2017-05-12 00:16:56 +00:00
CMakeLists.txt