[cfe-commits] r139445 - /cfe/trunk/lib/Sema/SemaOverload.cpp
Chandler Carruth
chandlerc at gmail.com
Fri Sep 9 17:51:25 PDT 2011
Author: chandlerc
Date: Fri Sep 9 19:51:24 2011
New Revision: 139445
URL: http://llvm.org/viewvc/llvm-project?rev=139445&view=rev
Log:
Fix a -Wreturn-type warning due to this field not explicitly having the
enumeration type.
Modified:
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=139445&r1=139444&r2=139445&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Fri Sep 9 19:51:24 2011
@@ -7290,7 +7290,7 @@
static unsigned RankDeductionFailure(
const OverloadCandidate::DeductionFailureInfo &DFI) {
- switch (DFI.Result) {
+ switch ((Sema::TemplateDeductionResult)DFI.Result) {
case Sema::TDK_Success:
case Sema::TDK_Incomplete:
return 1;
More information about the cfe-commits
mailing list