[PATCH] D17412: PR19957: [OpenCL] incorrectly accepts implicit address space conversion with ternary operator
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 1 14:24:40 PDT 2016
yaxunl marked 2 inline comments as done.
================
Comment at: test/CodeGenOpenCL/address-spaces-conversions.cl:1
@@ -1,2 +1,2 @@
// RUN: %clang_cc1 %s -triple x86_64-unknown-linux-gnu -O0 -ffake-address-space-map -cl-std=CL2.0 -emit-llvm -o - | FileCheck %s
----------------
Anastasia wrote:
> Cool, thanks! Could you insert a link to the new review here if possible.
I looked into the ICE when -ffake-address-space-map is not set.
when -ffake-address-space-map is set, address space 0-4 mapped to 0-4. When it is not set, it maps to values defined by target. x86 uses DefaultAddrSpaceMap which maps 0-4 all to 0. This causes assertion for testcase like
global int *a;
generic void *b = a;
A review is opened:
http://reviews.llvm.org/D18713
http://reviews.llvm.org/D17412
More information about the cfe-commits
mailing list