Fix a -Wreturn-type warning due to this field not explicitly having the

enumeration type.

llvm-svn: 139445
This commit is contained in:
Chandler Carruth 2011-09-10 00:51:24 +00:00
parent 7c575b3b3a
commit 73fddfe1b0
1 changed files with 1 additions and 1 deletions

View 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;