asavonic added a comment. LGTM, except for the `IncludeDefaultHeader` and `DeclareOpenCLBuiltins` logic.
================ Comment at: lib/Frontend/CompilerInvocation.cpp:2194 } + // Include base header file for builtin types and constants. + if (Opts.DeclareOpenCLBuiltins) { ---------------- Can we have the following logic instead? Otherwise `DeclareOpenCLBuiltins` implies `IncludeDefaultHeader` which is not always the case. ``` if (Opts.IncludeDefaultHeader) { if (Opts.DeclareOpenCLBuiltins) { PPOpts.Includes.push_back("opencl-c-base.h"); } else { PPOpts.Includes.push_back("opencl-c.h"); } } ``` Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D63256/new/ https://reviews.llvm.org/D63256 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits