aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/SourceManagerTest.cpp
diff options
context:
space:
mode:
authoryronglin <yronglin777@gmail.com>2024-08-30 17:34:00 +0800
committerGitHub <noreply@github.com>2024-08-30 17:34:00 +0800
commitb294951e3967730ffad14d51297694b1411d7af6 (patch)
tree93db907df027114d12dae1f2a34a06cb0ddd60ad /clang/unittests/Basic/SourceManagerTest.cpp
parent8f4aafb58ceb2c60f8f13d475d0623c696cd5716 (diff)
downloadllvm-b294951e3967730ffad14d51297694b1411d7af6.zip
llvm-b294951e3967730ffad14d51297694b1411d7af6.tar.gz
llvm-b294951e3967730ffad14d51297694b1411d7af6.tar.bz2
[clang][bytecode] Fix the handling of address of a vector (#106558)
The PR https://github.com/llvm/llvm-project/pull/105996 broke taking the address of a vector: **compound-literal.c** ```C typedef int v4i32 __attribute((vector_size(16))); v4i32 *y = &(v4i32){1,2,3,4}; ``` That because the current interpreter handle vector unary operator as a fallback when the generic code path fail. but the new interpreter was not. we need to handle `UO_AddrOf` in `Compiler<Emitter>::VisitVectorUnaryOperator`. Signed-off-by: yronglin <yronglin777@gmail.com>
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions