aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema')
-rw-r--r--lib/Sema/Sema.h2
-rw-r--r--lib/Sema/SemaDecl.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index e70da932f6..da878f3f13 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -258,7 +258,7 @@ private:
DeclTy **Elements, unsigned NumElements);
private:
/// Set the current declaration context until it gets popped.
- void PushDeclContext(DeclContext *CD);
+ void PushDeclContext(DeclContext *DC);
void PopDeclContext();
/// Add this decl to the scope shadowed decl chains.
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 415908a30b..c97ecc8313 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -42,11 +42,11 @@ Sema::DeclTy *Sema::isTypeName(const IdentifierInfo &II, Scope *S) {
return 0;
}
-void Sema::PushDeclContext(DeclContext *CD) {
- assert( ( (CD->isFunctionOrMethod() && isa<TranslationUnitDecl>(CurContext))
- || CD->getParent() == CurContext ) &&
+void Sema::PushDeclContext(DeclContext *DC) {
+ assert( ( (DC->isFunctionOrMethod() && isa<TranslationUnitDecl>(CurContext))
+ || DC->getParent() == CurContext ) &&
"The next DeclContext should be directly contained in the current one.");
- CurContext = CD;
+ CurContext = DC;
}
void Sema::PopDeclContext() {