diff options
| author | Vedant Kumar <vsk@apple.com> | 2017-02-24 01:15:19 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2017-02-24 01:15:19 +0000 |
| commit | 7f809b2fbd0c3a0fee44e3805955a1b0c76f3ce1 (patch) | |
| tree | ef1505d7c247c6e46721fc520b3de6b6e814c6ad /clang/lib/CodeGen/CGClass.cpp | |
| parent | d75fd0988d1e8f2393363ebdd31fc0325a4ba82a (diff) | |
| download | bcm5719-llvm-7f809b2fbd0c3a0fee44e3805955a1b0c76f3ce1.tar.gz bcm5719-llvm-7f809b2fbd0c3a0fee44e3805955a1b0c76f3ce1.zip | |
[profiling] PR31992: Don't skip interesting non-base constructors
Fix the fact that we don't assign profile counters to constructors in
classes with virtual bases, or constructors with variadic parameters.
Differential Revision: https://reviews.llvm.org/D30131
llvm-svn: 296062
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGClass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp index a305ae62caf..dce1e817d08 100644 --- a/clang/lib/CodeGen/CGClass.cpp +++ b/clang/lib/CodeGen/CGClass.cpp @@ -689,7 +689,8 @@ void CodeGenFunction::EmitInitializerForField(FieldDecl *Field, LValue LHS, /// complete-to-base constructor delegation optimization, i.e. /// emitting the complete constructor as a simple call to the base /// constructor. -static bool IsConstructorDelegationValid(const CXXConstructorDecl *Ctor) { +bool CodeGenFunction::IsConstructorDelegationValid( + const CXXConstructorDecl *Ctor) { // Currently we disable the optimization for classes with virtual // bases because (1) the addresses of parameter variables need to be |

