[cfe-dev] Regression with commit 264241

Neil Henning via cfe-dev cfe-dev at lists.llvm.org
Fri Apr 22 02:53:52 PDT 2016


Hey all,

We've just bumped our clang revision internally and found the following 
regression with SVN 264241 (differential http://reviews.llvm.org/D17596).

The line that is causing us umbrage is in 
clang/lib/CodeGen/TargetInfo.cpp:7393:

assert(CGM.getLangOpts().OpenCL && "SPIR is only for OpenCL");

We compile from non-OpenCL sources targeting SPIR/SPIR64, and then link 
these with OpenCL kernels. Because of the assert, we can no longer 
compile the non-OpenCL source files.

Would anyone greatly miss us removing this assert? Locally everything 
works as expected when I do this.

-Neil.



More information about the cfe-dev mailing list