aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-16 22:10:11 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-16 22:10:11 +0000
commitbcbb8bd3326a86aa70b7df386ae3c86c9ad255c5 (patch)
tree1446b8bd2ef66c99b8b0d8219f3feebdde52005f /lib/Sema/SemaTemplateInstantiateDecl.cpp
parent62a11a78c2616ce1fa3ef7b1a4bc3f42365cafb9 (diff)
Fix unused variable warnings (with -Asserts)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiateDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 1f58568580..8ff80af190 100644
--- a/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -646,6 +646,7 @@ TemplateDeclInstantiator::InitFunctionInstantiation(FunctionDecl *New,
= dyn_cast<FunctionTemplateDecl>((Decl *)ActiveInst.Entity)) {
assert(FunTmpl->getTemplatedDecl() == Tmpl &&
"Deduction from the wrong function template?");
+ (void) FunTmpl;
ActiveInst.Kind = ActiveInstType::TemplateInstantiation;
ActiveInst.Entity = reinterpret_cast<uintptr_t>(New);
}