aboutsummaryrefslogtreecommitdiff
path: root/lib/IR
diff options
context:
space:
mode:
authorMark Seaborn <mseaborn@chromium.org>2013-05-22 10:09:50 -0700
committerMark Seaborn <mseaborn@chromium.org>2013-05-22 10:09:50 -0700
commit099f6bfc79eb94351dfe006eeaea24983f8b12a4 (patch)
tree04cb8652ce345c0efddbca42b332e86a8bf2e7f4 /lib/IR
parente7ea8c5f10b2e490fb13570fa6b97e94d7bec6cd (diff)
PNaCl: Fix ExpandCtors to handle an empty list case
While writing a test, I noticed that ExpandCtors crashes if given the empty list "[]", because this gets converted into an UndefValue ConstantExpr by the LLVM assembly reader. Fix this by checking the array's size via its type. This replaces the isNullValue() check. Make error handling cleaner by splitting out a separate function. BUG=none TEST=test/Transforms/NaCl/expand-ctors-emptylist.ll Review URL: https://codereview.chromium.org/15659005
Diffstat (limited to 'lib/IR')
0 files changed, 0 insertions, 0 deletions