diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2018-04-25 23:02:06 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2018-04-25 23:02:06 +0000 |
commit | 310bca01781bff0d71c2d69a952b3a7bd6b6ef2a (patch) | |
tree | 3837d95a2816d6648794c0ff5199ed4e5176ae92 /llvm/lib/MC/MCCodeView.cpp | |
parent | 0bf96f933a0cae717d8311785db8485aeacabf1b (diff) | |
download | llvm-310bca01781bff0d71c2d69a952b3a7bd6b6ef2a.zip llvm-310bca01781bff0d71c2d69a952b3a7bd6b6ef2a.tar.gz llvm-310bca01781bff0d71c2d69a952b3a7bd6b6ef2a.tar.bz2 |
[analyzer] Fix a crash on lifetime extension through aggregate initialization.
If 'A' is a C++ aggregate with a reference field of type 'C', in code like
A a = { C() };
C() is lifetime-extended by 'a'. The analyzer wasn't expecting this pattern and
crashing. Additionally, destructors aren't added in the CFG for this case,
so for now we shouldn't be inlining the constructor for C().
Differential Revision: https://reviews.llvm.org/D46037
llvm-svn: 330882
Diffstat (limited to 'llvm/lib/MC/MCCodeView.cpp')
0 files changed, 0 insertions, 0 deletions