aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Lex/LexerTest.cpp
diff options
context:
space:
mode:
authorKerry McLaughlin <kerry.mclaughlin@arm.com>2022-01-31 13:25:02 +0000
committerKerry McLaughlin <kerry.mclaughlin@arm.com>2022-01-31 14:37:23 +0000
commit002b944dfa3d588b05f967d6b55e6c36ce97d4e5 (patch)
treeb76ecb5014e1908737505f7d610d8e884372a15c /clang/unittests/Lex/LexerTest.cpp
parent6b1e844b69f15bb7dffaf9365cd2b355d2eb7579 (diff)
downloadllvm-002b944dfa3d588b05f967d6b55e6c36ce97d4e5.zip
llvm-002b944dfa3d588b05f967d6b55e6c36ce97d4e5.tar.gz
llvm-002b944dfa3d588b05f967d6b55e6c36ce97d4e5.tar.bz2
[SVE] Fix TypeSize->uint64_t implicit conversion in visitAlloca()
Fixes a crash ('Invalid size request on a scalable vector') in visitAlloca() when we call this function for a scalable alloca instruction, caused by the implicit conversion of TySize to uint64_t. This patch changes TySize to a TypeSize as returned by getTypeAllocSize() and ensures the allocation size is multiplied by vscale for scalable vectors. Reviewed By: sdesmalen, david-arm Differential Revision: https://reviews.llvm.org/D118372
Diffstat (limited to 'clang/unittests/Lex/LexerTest.cpp')
0 files changed, 0 insertions, 0 deletions