aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2014-07-14 06:22:36 +0000
committerBill Wendling <isanbard@gmail.com>2014-07-14 06:22:36 +0000
commit151b44d653e0e90c59fae22831be39925308354e (patch)
tree9757d3812015b125e1a6dd5d91cff7fbe03d673a /clang/lib/Frontend/InitPreprocessor.cpp
parent5c40508457c573e3153f7bdcd1b190ccab6eb8ee (diff)
downloadllvm-151b44d653e0e90c59fae22831be39925308354e.zip
llvm-151b44d653e0e90c59fae22831be39925308354e.tar.gz
llvm-151b44d653e0e90c59fae22831be39925308354e.tar.bz2
Support lowering of empty aggregates.
This crash was pretty common while compiling Rust for iOS (armv7). Reason - SjLj preparation step was lowering aggregate arguments as ExtractValue + InsertValue. ExtractValue has assertion which checks that there is some data in value, which is not true in case of empty (no fields) structures. Rust uses them quite extensively so this patch uses a 'select true, %val, undef' instruction to lower the argument. Patch by Valerii Hiora. llvm-svn: 212922
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions