[all-commits] [llvm/llvm-project] ed5b42: Fix address space for function pointers with quali...

elizabethandrews via All-commits all-commits at lists.llvm.org
Mon Feb 7 12:54:36 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed5b42b741881a0a94e65999f0c785ec53b46511
      https://github.com/llvm/llvm-project/commit/ed5b42b741881a0a94e65999f0c785ec53b46511
  Author: Elizabeth Andrews <elizabeth.andrews at intel.com>
  Date:   2022-02-07 (Mon, 07 Feb 2022)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    A clang/test/CodeGen/address-space-ptr32.c

  Log Message:
  -----------
  Fix address space for function pointers with qualifier

This patch fixes a bug introduced in commit 4eaf5846d0e7. Commit
4eaf5846d0e7 sets address space of function type as program
address space unconditionally. This breaks types which have
address space qualifiers. E.g. __ptr32.

This patch fixes the bug by using address space qualifiers if
present.

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




More information about the All-commits mailing list