llvm-project/clang/lib
Yaxun Liu e9e5c4f975 CodeGen: Fix invalid bitcast for coerced function argument
Clang assumes coerced function argument is in address space 0, which is not always true and results in invalid bitcasts.

This patch fixes failure in OpenCL conformance test api/get_kernel_arg_info with amdgcn---amdgizcl triple, where non-zero alloca address space is used.

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

llvm-svn: 306721
2017-06-29 18:47:45 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST Make CastExpr::getSubExprAsWritten look through implicit temporary under CK_ConstructorConversion 2017-06-27 08:19:09 +00:00
ASTMatchers [ASTMatchers] Fix use after free. 2017-06-09 17:55:42 +00:00
Analysis Changed wording in comment 2017-06-21 05:41:39 +00:00
Basic [Clang][X86][Goldmont]Adding new target-cpu: Goldmont 2017-06-29 13:41:04 +00:00
CodeGen CodeGen: Fix invalid bitcast for coerced function argument 2017-06-29 18:47:45 +00:00
Driver [OpenMP] Pass -fopenmp-is-device to preprocessing and machine specific code generation stages 2017-06-29 15:59:19 +00:00
Edit [clang] Fix format specifiers fixits for nested macros 2017-06-20 20:46:58 +00:00
Format [clang-format] Fix parsing of msg{field}-style proto options 2017-06-29 13:30:41 +00:00
Frontend [OpenMP] Add support for auxiliary triple specification 2017-06-29 15:49:03 +00:00
FrontendTool Add -frewrite-imports flag. 2017-06-09 21:24:02 +00:00
Headers [DOXYGEN] Corrected several typos and incorrect parameters description that Sony's techinical writer found during review. 2017-06-06 22:58:01 +00:00
Index [index] Add the "SpecializationOf" relation to the forward declarations 2017-06-22 11:20:07 +00:00
Lex Track the set of module maps read while building a .pcm file and reload those when preprocessing from that .pcm file. 2017-06-29 02:19:42 +00:00
Parse [Sema] Fix a crash-on-invalid when a template parameter list has a class 2017-06-26 18:46:12 +00:00
Rewrite Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:29:40 +00:00
Sema Fixed -Wexceptions derived-to-base false positives 2017-06-29 17:58:59 +00:00
Serialization Track the set of module maps read while building a .pcm file and reload those when preprocessing from that .pcm file. 2017-06-29 02:19:42 +00:00
StaticAnalyzer [analyzer] Move zero-size allocation checks to optin.portability. 2017-06-27 11:14:39 +00:00
Tooling [Tooling] FixedCompilationDatabase should be able to strip positional 2017-06-29 10:43:44 +00:00
CMakeLists.txt