summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-02-04 08:02:35 +0000
committerEric Fiselier <eric@efcs.ca>2018-02-04 08:02:35 +0000
commitc6b3c7bb635352c7d228140ed0816befe2096944 (patch)
tree6ab5dc83442cf71278069b405330b5ac634e5845 /llvm/lib/Transforms
parent4f0c85310d880752684621d4afd2eea7f397bf99 (diff)
downloadbcm5719-llvm-c6b3c7bb635352c7d228140ed0816befe2096944.tar.gz
bcm5719-llvm-c6b3c7bb635352c7d228140ed0816befe2096944.zip
Fix initialization of array<const T, 0> with GCC.
Previously, when handling zero-sized array of const objects we used a const version of aligned_storage_t, which is not an array type. However, GCC complains about initialization of the form: array<const T, 0> arr = {}; This patch fixes that bug by making the dummy object used to represent the zero-sized array an array itself. This avoids GCC's complaints about the uninitialized const member. llvm-svn: 324194
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud