[all-commits] [llvm/llvm-project] 74ef6a: Fix X86_64 complex-returns for regcall.

Erich Keane via All-commits all-commits at lists.llvm.org
Tue May 19 13:21:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 74ef6a11478abe5f0f3f817640508f0cf5d8de0c
      https://github.com/llvm/llvm-project/commit/74ef6a11478abe5f0f3f817640508f0cf5d8de0c
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2020-05-19 (Tue, 19 May 2020)

  Changed paths:
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/test/CodeGenCXX/regcall.cpp

  Log Message:
  -----------
  Fix X86_64 complex-returns for regcall.

D35259 introduced a case where complex types of non-long-double would
result in FI.getReturnInfo() to not be initialized properly.  This
resulted in a crash under some very specific circumstances when
dereferencing the LLVMContext.

This patch makes sure that these types have the intended getReturnInfo
initialization.




More information about the All-commits mailing list