[PATCH] D97058: [OpenCL] Refactor diagnostic for OpenCL extension/feature

Anton Zabaznov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 15 01:47:08 PDT 2021


azabaznov added a comment.

> Do you also get fatal error: 'opencl-c-base.h' file not found? If so, we might need at least to file a clang bug that we should look at before the next release.

I'm able to reproduce it when not setting `-target` option explicitly:

  $ ./build_release/bin/c-index-test -test-print-type ./llvm-project/clang/test/Index/opencl-types.cl -cl-std=CL2.0 | ./build_release/bin/FileCheck ./llvm-project/clang/test/Index/opencl-types.cl
  fatal error: 'opencl-c-base.h' file not found
  fatal error: 'opencl-c-base.h' file not found
  
  $ ./build_release/bin/c-index-test -test-print-type ./llvm-project/clang/test/Index/opencl-types.cl -cl-std=CL2.0 -target x86_64 | ./build_release/bin/FileCheck ./llvm-project/clang/test/Index/opencl-types.cl
  $


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97058/new/

https://reviews.llvm.org/D97058



More information about the cfe-commits mailing list