diff options
| author | Richard Sandiford <richard.sandiford@arm.com> | 2020-02-21 15:49:26 +0000 |
|---|---|---|
| committer | Richard Sandiford <richard.sandiford@arm.com> | 2020-03-12 17:39:29 +0000 |
| commit | f8700db7f150287b71453e4ae10dea79a2e4fb03 (patch) | |
| tree | 12badeef6ef4293c764155630ddf48d249846b3d /llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp | |
| parent | 36e018b94111b90797489050aa8edc004781a1b5 (diff) | |
| download | llvm-f8700db7f150287b71453e4ae10dea79a2e4fb03.zip llvm-f8700db7f150287b71453e4ae10dea79a2e4fb03.tar.gz llvm-f8700db7f150287b71453e4ae10dea79a2e4fb03.tar.bz2 | |
[Sema][SVE] Don't allow static or thread-local variables to have sizeless type
clang accepts a TU containing just:
__SVInt8_t x;
However, sizeless types are not allowed to have static or thread-local
storage duration and trying to code-generate the TU triggers an LLVM
fatal error:
Globals cannot contain scalable vectors
<vscale x 16 x i8>* @x
fatal error: error in backend: Broken module found, compilation aborted!
This patch adds an associated clang diagnostic.
Differential Revision: https://reviews.llvm.org/D75736
Diffstat (limited to 'llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
