aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ThreadLocal.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-12-14 12:16:43 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-12-14 12:16:43 +0000
commit17e2633cd65d43ec0a14d247c7be83e2b793ef86 (patch)
tree5271c453ac6943f7f2a4bcd663699d090e03e14e /llvm/lib/Support/ThreadLocal.cpp
parent3fcafa2cdb0d128507308a05555049d3424da2a5 (diff)
downloadllvm-17e2633cd65d43ec0a14d247c7be83e2b793ef86.zip
llvm-17e2633cd65d43ec0a14d247c7be83e2b793ef86.tar.gz
llvm-17e2633cd65d43ec0a14d247c7be83e2b793ef86.tar.bz2
CodeGen: Compound literals with funny types shouldn't crash
CodeGen assumed that a compound literal with array type should have a corresponding LLVM IR array type. We had two bugs in this area: - Zero sized arrays in compound literals would lead to the creation of an opaque type. This is unnecessary, we should just create an array type with a bound of zero. - Funny record types (like unions) lead to exotic IR types for compound literals. In this case, CodeGen must be prepared to deal with the possibility that it might not have an array IR type. This fixes PR21912. llvm-svn: 224219
Diffstat (limited to 'llvm/lib/Support/ThreadLocal.cpp')
0 files changed, 0 insertions, 0 deletions