bader added a comment.

Note: `get_sampler_initializer` from my test case returns integer, not a 
sampler, but having function is not relevant to the problem. 
Here is a bit simplified test case without function calls that still reproduces 
the problem:

  kernel void foo(int sampler_init_value) {
    const sampler_t const_smp_func_init = sampler_init_value;
  }

The problem is in the function that handles sampler initialization with integer.
There should no problems with the case you provided as it doesn't require 
additional function call injection.


https://reviews.llvm.org/D34342



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to