|
18 | 18 | #include "clang/AST/DependentDiagnostic.h"
|
19 | 19 | #include "clang/AST/Expr.h"
|
20 | 20 | #include "clang/AST/ExprCXX.h"
|
| 21 | +#include "clang/AST/PrettyDeclStackTrace.h" |
21 | 22 | #include "clang/AST/TypeLoc.h"
|
22 | 23 | #include "clang/Sema/Initialization.h"
|
23 | 24 | #include "clang/Sema/Lookup.h"
|
24 |
| -#include "clang/Sema/PrettyDeclStackTrace.h" |
25 | 25 | #include "clang/Sema/Template.h"
|
26 | 26 | #include "clang/Sema/TemplateInstCallback.h"
|
27 | 27 |
|
@@ -3895,7 +3895,7 @@ void Sema::InstantiateFunctionDefinition(SourceLocation PointOfInstantiation,
|
3895 | 3895 | InstantiatingTemplate Inst(*this, PointOfInstantiation, Function);
|
3896 | 3896 | if (Inst.isInvalid() || Inst.isAlreadyInstantiating())
|
3897 | 3897 | return;
|
3898 |
| - PrettyDeclStackTraceEntry CrashInfo(*this, Function, SourceLocation(), |
| 3898 | + PrettyDeclStackTraceEntry CrashInfo(Context, Function, SourceLocation(), |
3899 | 3899 | "instantiating function definition");
|
3900 | 3900 |
|
3901 | 3901 | // The instantiation is visible here, even if it was first declared in an
|
@@ -4306,7 +4306,7 @@ void Sema::InstantiateVariableDefinition(SourceLocation PointOfInstantiation,
|
4306 | 4306 | InstantiatingTemplate Inst(*this, PointOfInstantiation, Var);
|
4307 | 4307 | if (Inst.isInvalid() || Inst.isAlreadyInstantiating())
|
4308 | 4308 | return;
|
4309 |
| - PrettyDeclStackTraceEntry CrashInfo(*this, Var, SourceLocation(), |
| 4309 | + PrettyDeclStackTraceEntry CrashInfo(Context, Var, SourceLocation(), |
4310 | 4310 | "instantiating variable initializer");
|
4311 | 4311 |
|
4312 | 4312 | // The instantiation is visible here, even if it was first declared in an
|
@@ -4419,7 +4419,7 @@ void Sema::InstantiateVariableDefinition(SourceLocation PointOfInstantiation,
|
4419 | 4419 | InstantiatingTemplate Inst(*this, PointOfInstantiation, Var);
|
4420 | 4420 | if (Inst.isInvalid() || Inst.isAlreadyInstantiating())
|
4421 | 4421 | return;
|
4422 |
| - PrettyDeclStackTraceEntry CrashInfo(*this, Var, SourceLocation(), |
| 4422 | + PrettyDeclStackTraceEntry CrashInfo(Context, Var, SourceLocation(), |
4423 | 4423 | "instantiating variable definition");
|
4424 | 4424 |
|
4425 | 4425 | // If we're performing recursive template instantiation, create our own
|
@@ -5223,7 +5223,7 @@ void Sema::PerformPendingInstantiations(bool LocalOnly) {
|
5223 | 5223 | break;
|
5224 | 5224 | }
|
5225 | 5225 |
|
5226 |
| - PrettyDeclStackTraceEntry CrashInfo(*this, Var, SourceLocation(), |
| 5226 | + PrettyDeclStackTraceEntry CrashInfo(Context, Var, SourceLocation(), |
5227 | 5227 | "instantiating variable definition");
|
5228 | 5228 | bool DefinitionRequired = Var->getTemplateSpecializationKind() ==
|
5229 | 5229 | TSK_ExplicitInstantiationDefinition;
|
|
0 commit comments