r255231 - Add parentheses to suppress a -Wparentheses warning.
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 10 00:50:21 PST 2015
Author: ctopper
Date: Thu Dec 10 02:49:55 2015
New Revision: 255231
URL: http://llvm.org/viewvc/llvm-project?rev=255231&view=rev
Log:
Add parentheses to suppress a -Wparentheses warning.
Modified:
cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp?rev=255231&r1=255230&r2=255231&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp Thu Dec 10 02:49:55 2015
@@ -3246,8 +3246,8 @@ DeduceFromInitializerList(Sema &S, Templ
// Deduction only needs to be done for dependent types.
if (ElTy->isDependentType()) {
for (Expr *E : ILE->inits()) {
- if (Result = DeduceTemplateArgumentByListElement(S, TemplateParams, ElTy,
- E, Info, Deduced, TDF))
+ if ((Result = DeduceTemplateArgumentByListElement(S, TemplateParams, ElTy,
+ E, Info, Deduced, TDF)))
return true;
}
}
More information about the cfe-commits
mailing list