aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ProgramStackTest.cpp
diff options
context:
space:
mode:
authorYLChenZ <chentongyongcz@gmail.com>2025-04-15 20:16:09 +0800
committerGitHub <noreply@github.com>2025-04-15 14:16:09 +0200
commit9a6c001b125d7d37b8f2c8b96461768c797c4e3f (patch)
treefb7abff38dd82e39c5f052e5f06d8b30e2432514 /llvm/unittests/Support/ProgramStackTest.cpp
parent38faf32d23d1edb7708711d0f9e0db853ddf75a5 (diff)
downloadllvm-9a6c001b125d7d37b8f2c8b96461768c797c4e3f.zip
llvm-9a6c001b125d7d37b8f2c8b96461768c797c4e3f.tar.gz
llvm-9a6c001b125d7d37b8f2c8b96461768c797c4e3f.tar.bz2
[clang][ast]: Add DynamicAllocLValue and TypeInfoLValue support to APValue::dump(). (#135178)
Closes #134996. The crash about `TypeInfoLValue` is https://godbolt.org/z/73WY31s55. After the patch: ```cpp //test.cpp #include <typeinfo> constexpr const std::type_info* val = &typeid(int); ``` ``` lambda@ubuntu22:~/test$ clang++ -std=c++20 -Xclang -ast-dump -fsyntax-only test.cpp LValue Base=TypeInfoLValue typeid(int), Null=0, Offset=0, HasPath=1, PathLength=0, Path=() ``` ```cpp //DAtest.cpp constexpr int *m = new int(42); ``` ``` lambda@ubuntu22:~/test$ clang++ -std=c++20 -Xclang -ast-dump -fsyntax-only DAtest.cpp LValue Base=DynamicAllocLValue 'int', Null=0, Offset=0, HasPath=1, PathLength=0, Path=() ```
Diffstat (limited to 'llvm/unittests/Support/ProgramStackTest.cpp')
0 files changed, 0 insertions, 0 deletions