[PATCH] D50003: Sema: Fix explicit address space cast involving void pointers
    Yaxun Liu via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Mon Jul 30 12:30:09 PDT 2018
    
    
  
yaxunl created this revision.
yaxunl added a reviewer: rjmccall.
Explicit cast of a void pointer to a pointer type in different address space is
incorrectly classified as bitcast, which causes invalid bitcast in codegen.
The patch fixes that by checking the address space of the source and destination
type and set the correct cast kind.
https://reviews.llvm.org/D50003
Files:
  lib/Sema/SemaCast.cpp
  test/CodeGenCXX/address-space-cast.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50003.158043.patch
Type: text/x-patch
Size: 4903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180730/20689b9e/attachment.bin>
    
    
More information about the cfe-commits
mailing list