[all-commits] [llvm/llvm-project] bb1616: [CodeGen] Fix invalid llvm.linker.options about pr...

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Thu Oct 31 19:28:07 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bb1616ba47261a0767063e85718d546165972120
      https://github.com/llvm/llvm-project/commit/bb1616ba47261a0767063e85718d546165972120
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2019-10-31 (Thu, 31 Oct 2019)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/CodeGen/pragma-detect_mismatch.c

  Log Message:
  -----------
  [CodeGen] Fix invalid llvm.linker.options about pragma detect_mismatch

When a target does not support pragma detect_mismatch, an llvm.linker.options
metadata with an empty entry is created, which causes diagnostic in backend
since backend expects name/value pair in llvm.linker.options entries.

This patch fixes that.

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




More information about the All-commits mailing list