]> granicus.if.org Git - clang/commitdiff
Fix a -Wreturn-type warning due to this field not explicitly having the
authorChandler Carruth <chandlerc@gmail.com>
Sat, 10 Sep 2011 00:51:24 +0000 (00:51 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 10 Sep 2011 00:51:24 +0000 (00:51 +0000)
enumeration type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139445 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index a38b7dbd76017cb40c0398f128e5e1d7a491db3f..c200daedfbb35523380219677ed57fcf3ee034bb 100644 (file)
@@ -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;