diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2013-06-25 01:55:59 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2013-06-25 01:55:59 +0000 |
| commit | 1fc9111d85c3929018cd5c85dd14f3dbb5d23d68 (patch) | |
| tree | 974ae82cfda3b45a3117326713cac0f8c4a67adc /lib/CodeGen/CodeGenFunction.cpp | |
| parent | f9b4fea4bf6cebe614e49ab4b582dcf4bf0a6806 (diff) | |
| download | clang-1fc9111d85c3929018cd5c85dd14f3dbb5d23d68.tar.gz clang-1fc9111d85c3929018cd5c85dd14f3dbb5d23d68.tar.bz2 clang-1fc9111d85c3929018cd5c85dd14f3dbb5d23d68.tar.xz | |
[analyzer] Don't initialize virtual base classes more than once.
In order to make sure virtual base classes are always initialized once,
the AST contains initializers for the base class in /all/ of its
descendents, not just the immediate descendents. However, at runtime,
the most-derived object is responsible for initializing all the virtual
base classes; all the other initializers will be ignored.
The analyzer now checks to see if it's being called from another base
constructor, and if so does not perform virtual base initialization.
<rdar://problem/14236851>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
