[all-commits] [llvm/llvm-project] 94b0ae: [OpenCL] Fix ICE with invalid use of half

Ole Strøhm via All-commits all-commits at lists.llvm.org
Tue Jun 1 05:43:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94b0aec0f5c6b4f6a27cf3a542f795bbba72e851
      https://github.com/llvm/llvm-project/commit/94b0aec0f5c6b4f6a27cf3a542f795bbba72e851
  Author: Ole Strohm <olemarius.strohm at arm.com>
  Date:   2021-06-01 (Tue, 01 Jun 2021)

  Changed paths:
    M clang/lib/Sema/SemaExprCXX.cpp
    A clang/test/SemaOpenCLCXX/half.clcpp

  Log Message:
  -----------
  [OpenCL] Fix ICE with invalid use of half

Because half is limited to the `cl_khr_fp16` extension being enabled,
`DefaultLvalueConversion` can fail when it's not enabled.
The original assumption that it will never fail is therefore wrong now.

Fixes: PR47976

Reviewed By: Anastasia

Differential Revision: https://reviews.llvm.org/D103175




More information about the All-commits mailing list