[all-commits] [llvm/llvm-project] 85c2bd: Prevent adding module flag amdgpu_hostcall multipl...

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Wed Jan 19 09:53:06 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 85c2bd2a0e0e2c1706bbf50203d5bbbeedbbd741
      https://github.com/llvm/llvm-project/commit/85c2bd2a0e0e2c1706bbf50203d5bbbeedbbd741
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2022-01-19 (Wed, 19 Jan 2022)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    A clang/test/CodeGenCUDA/amdgpu-asan-printf.cu

  Log Message:
  -----------
  Prevent adding module flag amdgpu_hostcall multiple times

HIP program with printf call fails to compile with -fsanitize=address
option, because of appending module flag - amdgpu_hostcall twice, one
for printf and one for sanitize option. This patch fixes that issue.

Patch by: Praveen Velliengiri

Reviewed by: Yaxun Liu, Roman Lebedev

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




More information about the All-commits mailing list