summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-10-15 07:57:41 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-10-15 07:57:41 +0000
commitb00ddf31b257557efdc1e5e1dbe8325c290dea47 (patch)
treea8537901a96bcc625f79bd46125409528cb32b1d /clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp
parent2e29b40d5ec0dda72ee64c39b78c791e59f0caa5 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud