summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-09-10 00:51:24 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-09-10 00:51:24 +0000
commit73fddfe1b0d51a15613677df812ba07253db5e4f (patch)
tree56048792bc6ef27e28ff572c0e6202157536cafd /clang/lib/Sema/SemaOverload.cpp
parent7c575b3b3ae4aea7403f1bc78a6632cec58b8879 (diff)
downloadbcm5719-llvm-73fddfe1b0d51a15613677df812ba07253db5e4f.tar.gz
bcm5719-llvm-73fddfe1b0d51a15613677df812ba07253db5e4f.zip
Fix a -Wreturn-type warning due to this field not explicitly having the
enumeration type. llvm-svn: 139445
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
-rw-r--r--clang/lib/Sema/SemaOverload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index a38b7dbd760..c200daedfbb 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud