summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2018-05-15 22:07:51 +0000
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2018-05-15 22:07:51 +0000
commit57d341c27adfdc13bbf49b068cded3404a26f0af (patch)
tree98595a2386819ec940752bdf1848a87e74bbd5a5 /clang/lib/Frontend/CompilerInvocation.cpp
parent5455038d98b7c48e21603ef86200847834c0a086 (diff)
downloadbcm5719-llvm-57d341c27adfdc13bbf49b068cded3404a26f0af.tar.gz
bcm5719-llvm-57d341c27adfdc13bbf49b068cded3404a26f0af.zip
[AMDGPU] Fix handling of void types in isLegalAddressingMode
It is legal for the type passed to isLegalAddressingMode to be unsized or, more specifically, VoidTy. In this case, we must check the legality of load / stores for all legal types. Directly trying to call getTypeStoreSize is incorrect, and leads to breakage in e.g. Loop Strength Reduction. This change guards against that behaviour. Differential Revision: https://reviews.llvm.org/D40405 llvm-svn: 332409
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud