[PATCH] D46667: [OpenCL, OpenMP] Fix crash when OpenMP used in OpenCL file
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 10 05:14:33 PDT 2018
Anastasia added inline comments.
================
Comment at: lib/Sema/SemaDecl.cpp:11348
// initialiser
- if (var->getTypeSourceInfo()->getType()->isBlockPointerType() &&
- !var->hasInit()) {
+ if (var->getType()->isBlockPointerType() && !var->hasInit()) {
Diag(var->getLocation(), diag::err_opencl_invalid_block_declaration)
----------------
Does `simd` result in block creation? My original understanding of it was that it will result in vector operations, not extra threads.
Repository:
rC Clang
https://reviews.llvm.org/D46667
More information about the cfe-commits
mailing list