summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-08-28 22:06:43 +0000
committerDouglas Gregor <dgregor@apple.com>2009-08-28 22:06:43 +0000
commitc37709b3c57fc08cd94804ac50795af013a0225f (patch)
treed2810d785a49d8c3ea159f19dfadf916b21776af /clang/lib
parent2fee79a9a19b0b60f74c2b8f3e475a512aced3e2 (diff)
downloadbcm5719-llvm-c37709b3c57fc08cd94804ac50795af013a0225f.tar.gz
bcm5719-llvm-c37709b3c57fc08cd94804ac50795af013a0225f.zip
Remove #if 0'd code that is clearly not needed
llvm-svn: 80399
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiateDecl.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 7b06bf909aa..8370bd17efa 100644
--- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -1069,32 +1069,8 @@ void Sema::InstantiateStaticDataMemberDefinition(
DeclContext *PreviousContext = CurContext;
CurContext = Var->getDeclContext();
-#if 0
- // Instantiate the initializer of this static data member.
- OwningExprResult Init
- = InstantiateExpr(Def->getInit(), getTemplateInstantiationArgs(Var));
- if (Init.isInvalid()) {
- // If instantiation of the initializer failed, mark the declaration invalid
- // and don't instantiate anything else that was triggered by this
- // instantiation.
- Var->setInvalidDecl();
-
- // Restore the set of pending implicit instantiations.
- PendingImplicitInstantiations.swap(SavedPendingImplicitInstantiations);
-
- return;
- }
-
- // Type-check the initializer.
- if (Init.get())
- AddInitializerToDecl(DeclPtrTy::make(Var), move(Init),
- Def->hasCXXDirectInitializer());
- else
- ActOnUninitializedDecl(DeclPtrTy::make(Var), false);
-#else
Var = cast_or_null<VarDecl>(SubstDecl(Def, Var->getDeclContext(),
getTemplateInstantiationArgs(Var)));
-#endif
CurContext = PreviousContext;
OpenPOWER on IntegriCloud