]> granicus.if.org Git - clang/commit
Fix OpenCL/SPIR kernel_arg_type metadata node
authorFraser Cormack <fraser@codeplay.com>
Wed, 30 Jul 2014 13:41:12 +0000 (13:41 +0000)
committerFraser Cormack <fraser@codeplay.com>
Wed, 30 Jul 2014 13:41:12 +0000 (13:41 +0000)
commit4dcbc9c128330310675ad2553eff798ea842bd8b
tree762518274ac62a9ee32c5d72e80bae74d3c73ca7
parent6a4c46a144a3ad5bcb939f1ab2601315ecba95ba
Fix OpenCL/SPIR kernel_arg_type metadata node

This fixes a bug where kernel_arg_type was always changing 'unsigned ' to 'u'
for any parameter type, including non-canonical types.

Example:
  typedef unsigned int myunsignedint;
would report:
  "myunt"

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214305 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenFunction.cpp
test/CodeGenOpenCL/kernel-arg-info.cl