aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateDeduction.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2011-01-18 02:00:16 +0000
committerJeffrey Yasskin <jyasskin@google.com>2011-01-18 02:00:16 +0000
commitdec0984fce504a39a7f085774fb67cfd9957be58 (patch)
tree55173b9ff3c2a9fdc4be568145ce61ad5cb8f05e /lib/Sema/SemaTemplateDeduction.cpp
parentfb1e3bc29b667f4275e1d5a43d64ec173f4f9a7d (diff)
Fix warnings found by gcc-4.6, from -Wunused-but-set-variable and
-Wint-to-pointer-cast. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateDeduction.cpp')
-rw-r--r--lib/Sema/SemaTemplateDeduction.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Sema/SemaTemplateDeduction.cpp b/lib/Sema/SemaTemplateDeduction.cpp
index a608bea34c..0d074e0333 100644
--- a/lib/Sema/SemaTemplateDeduction.cpp
+++ b/lib/Sema/SemaTemplateDeduction.cpp
@@ -2019,11 +2019,9 @@ Sema::SubstituteExplicitTemplateArguments(
// note that the template argument pack is partially substituted and record
// the explicit template arguments. They'll be used as part of deduction
// for this template parameter pack.
- bool HasPartiallySubstitutedPack = false;
for (unsigned I = 0, N = Builder.size(); I != N; ++I) {
const TemplateArgument &Arg = Builder[I];
if (Arg.getKind() == TemplateArgument::Pack) {
- HasPartiallySubstitutedPack = true;
CurrentInstantiationScope->SetPartiallySubstitutedPack(
TemplateParams->getParam(I),
Arg.pack_begin(),
@@ -2438,7 +2436,6 @@ static bool AdjustFunctionParmAndArgTypesForDeduction(Sema &S,
else {
// - If A is a cv-qualified type, the top level cv-qualifiers of A’s
// type are ignored for type deduction.
- QualType CanonArgType = S.Context.getCanonicalType(ArgType);
if (ArgType.getCVRQualifiers())
ArgType = ArgType.getUnqualifiedType();
}