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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits