diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-10-15 07:57:41 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-10-15 07:57:41 +0000 |
commit | b00ddf31b257557efdc1e5e1dbe8325c290dea47 (patch) | |
tree | a8537901a96bcc625f79bd46125409528cb32b1d /clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp | |
parent | 2e29b40d5ec0dda72ee64c39b78c791e59f0caa5 (diff) | |
download | bcm5719-llvm-b00ddf31b257557efdc1e5e1dbe8325c290dea47.tar.gz bcm5719-llvm-b00ddf31b257557efdc1e5e1dbe8325c290dea47.zip |
CodeGen: Use the initing member's type for a union's storage type more often
Unions are initialized with the default initialization of their first
named member. If that member is not zero initialized, then we should
prefer that member's type. Otherwise, we might try to make an otherwise
unsuitable type (like an array) which we cannot easily initialize with a
pointer to member.
llvm-svn: 219781
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp')
0 files changed, 0 insertions, 0 deletions