aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2020-10-31 13:10:14 +0000
committerDavid Green <david.green@arm.com>2020-10-31 13:10:14 +0000
commit30ad7426442e6f029419366de8fe56eae529c00c (patch)
treee2e4cf1b25fe7846f8ffebc285f54455804d1ce5 /clang/lib/CodeGen/CodeGenFunction.cpp
parent5963e028e7145d68b70be128d13e26a02095a0ad (diff)
downloadllvm-30ad7426442e6f029419366de8fe56eae529c00c.zip
llvm-30ad7426442e6f029419366de8fe56eae529c00c.tar.gz
llvm-30ad7426442e6f029419366de8fe56eae529c00c.tar.bz2
[ARM] Fix crash for gather of pointer costs.
If the elt size is unknown due to it being a pointer, a comparison against 0 will cause an assert. Make sure the elt size is large enough before comparing and for the moment just return the scalar cost.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions