[all-commits] [llvm/llvm-project] f6f21d: [OPENMP]Fix PR49636: Assertion `(!Entry.getAddress...

cilkplus via All-commits all-commits at lists.llvm.org
Mon Mar 29 06:59:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6f21dcd6c2fa8e44d8c466c5db190aef42beef2
      https://github.com/llvm/llvm-project/commit/f6f21dcd6c2fa8e44d8c466c5db190aef42beef2
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/OpenMP/declare_target_codegen.cpp

  Log Message:
  -----------
  [OPENMP]Fix PR49636: Assertion `(!Entry.getAddress() || Entry.getAddress() == Addr) && "Resetting with the new address."' failed.

The original issue is caused by the fact that the variable is allocated
with incorrect type i1 instead of i8. This causes the bitcasting of the
declaration to i8 type and the bitcast expression does not match the
original variable.
To fix the problem, the UndefValue initializer and the original
variable should be emitted with type i8, not i1.

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




More information about the All-commits mailing list