Fix Coverity CID53317 - clash with parameter name. More explicit than op bool.

This commit is contained in:
Axel Naumann 2016-09-12 21:41:15 +02:00 committed by sftnight
parent 26580a75ee
commit 56e748da0e

View File

@ -1698,12 +1698,12 @@ namespace cling {
SourceLocation loc;
sema::TemplateDeductionInfo Info(loc);
FunctionDecl *fdecl = 0;
Sema::TemplateDeductionResult Result
Sema::TemplateDeductionResult TemplDedResult
= S.DeduceTemplateArguments(MethodTmpl,
const_cast<TemplateArgumentListInfo*>(ExplicitTemplateArgs),
fdecl,
Info);
if (Result) {
if (TemplDedResult != Sema::TDK_Success) {
// Deduction failure.
return 0;
} else {