diff options
| author | Erich Keane <erich.keane@intel.com> | 2019-02-07 15:14:11 +0000 |
|---|---|---|
| committer | Erich Keane <erich.keane@intel.com> | 2019-02-07 15:14:11 +0000 |
| commit | 892e63319497bfbea7c93d763c43a1944d6d7ab4 (patch) | |
| tree | 8eb0177f75e005d92fcb02f49e8394f6fb21a6c8 /clang/test | |
| parent | fe9bb8ff24a503ab8baf01bbc3f6983b717328f8 (diff) | |
| download | bcm5719-llvm-892e63319497bfbea7c93d763c43a1944d6d7ab4.tar.gz bcm5719-llvm-892e63319497bfbea7c93d763c43a1944d6d7ab4.zip | |
Fix r350643 to limit COFF emission to <= 32 BYTES instead of BITS.
The patch in r350643 incorrectly sets the COFF emission based on bits
instead of bytes. This patch converts the 32 via CharUnits to bits to
compare the correct values.
Change-Id: Icf38a16470ad5ae3531374969c033557ddb0d323
llvm-svn: 353411
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGen/microsoft-no-common-align.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGen/microsoft-no-common-align.c b/clang/test/CodeGen/microsoft-no-common-align.c index fc46946c00e..a7a27a06270 100644 --- a/clang/test/CodeGen/microsoft-no-common-align.c +++ b/clang/test/CodeGen/microsoft-no-common-align.c @@ -6,3 +6,6 @@ TooLargeAlignment TooBig; // CHECK: @TooBig = dso_local global <16 x float> zeroinitializer, align 64 NormalAlignment JustRight; // CHECK: @JustRight = common dso_local global <1 x float> zeroinitializer, align 4 + +TooLargeAlignment *IsAPointer; +// CHECK: @IsAPointer = common dso_local global <16 x float>* null, align 8 |

