From: Chandler Carruth Date: Sat, 10 Sep 2011 00:51:24 +0000 (+0000) Subject: Fix a -Wreturn-type warning due to this field not explicitly having the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78bf680ddf8522676474883fad2fe245f839d2ab;p=clang Fix a -Wreturn-type warning due to this field not explicitly having the enumeration type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139445 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index a38b7dbd76..c200daedfb 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -7290,7 +7290,7 @@ SourceLocation GetLocationForCandidate(const OverloadCandidate *Cand) { 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;