[PATCH] D26196: [WIP] Add support for non-zero null pointers

2016-11-08 Thread Yaxun Liu via cfe-commits
yaxunl added inline comments. Comment at: lib/CodeGen/CGExprConstant.cpp:1340 + return C; +return getNullPtr(PT, DestType); } rjmccall wrote: > efriedma wrote: > > Consider code like the following: > > > > int x = 0; > > auto y1 =

[PATCH] D26196: [WIP] Add support for non-zero null pointers

2016-11-07 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGExprConstant.cpp:1340 + return C; +return getNullPtr(PT, DestType); } efriedma wrote: > Consider code like the following: > > int x = 0; > auto y1 = (__specialaddrspace int

[PATCH] D26196: [WIP] Add support for non-zero null pointers

2016-11-07 Thread Eli Friedman via cfe-commits
efriedma added inline comments. Comment at: lib/CodeGen/CGExprConstant.cpp:1340 + return C; +return getNullPtr(PT, DestType); } Consider code like the following: int x = 0; auto y1 = (__specialaddrspace int*)0; auto y2 = (__sp

[PATCH] D26196: [WIP] Add support for non-zero null pointers

2016-11-07 Thread Yaxun Liu via cfe-commits
yaxunl retitled this revision from "AMDGPU: Translate null pointers in private and local addr space" to "[WIP] Add support for non-zero null pointers". yaxunl updated this revision to Diff 77097. yaxunl added a comment. This is work in progress. Revised by John's comments. Refactored getNullPtr