[all-commits] [llvm/llvm-project] 2143a9: Fix _ExtInt(1) to be a i1 in memory.

Erich Keane via All-commits all-commits at lists.llvm.org
Wed Aug 5 10:55:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2143a90b34a7846369127e762cec5917d5e1a5bd
      https://github.com/llvm/llvm-project/commit/2143a90b34a7846369127e762cec5917d5e1a5bd
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2020-08-05 (Wed, 05 Aug 2020)

  Changed paths:
    M clang/lib/CodeGen/CodeGenTypes.cpp
    M clang/test/CodeGen/ext-int.c

  Log Message:
  -----------
  Fix _ExtInt(1) to be a i1 in memory.

The _ExtInt(1) in getTypeForMem was hitting the bool logic for expanding
to an 8 bit value.  The result was an assert, or store i1 %0, i8* %2, align 1
since the parameter IS an i1.  This patch changes the 'forMem' test to
exclude ext-int from the bool test.




More information about the All-commits mailing list