Fix _ExtInt(1) to be a i1 in memory.
authorErich Keane <erich.keane@intel.com>
Wed, 5 Aug 2020 17:52:42 +0000 (10:52 -0700)
committerErich Keane <erich.keane@intel.com>
Wed, 5 Aug 2020 17:54:51 +0000 (10:54 -0700)
commit2143a90b34a7846369127e762cec5917d5e1a5bd
treec6a324c59f46a179a73d29470a90da8c3752a0d6
parent6780d5675b7cd75279d8fc13ee1a1cc272087613
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.
clang/lib/CodeGen/CodeGenTypes.cpp
clang/test/CodeGen/ext-int.c