[cfe-commits] r133604 - /cfe/trunk/lib/Sema/SemaLookup.cpp
Sean Hunt
scshunt at csclub.uwaterloo.ca
Tue Jun 21 19:58:46 PDT 2011
Author: coppro
Date: Tue Jun 21 21:58:46 2011
New Revision: 133604
URL: http://llvm.org/viewvc/llvm-project?rev=133604&view=rev
Log:
Actually, you know, fix the problem.
Modified:
cfe/trunk/lib/Sema/SemaLookup.cpp
Modified: cfe/trunk/lib/Sema/SemaLookup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLookup.cpp?rev=133604&r1=133603&r2=133604&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Tue Jun 21 21:58:46 2011
@@ -2273,7 +2273,8 @@
ArgType->getPointeeType().isConstQualified())
Result->setConstParamMatch(true);
}
- } else if (FunctionTemplateDecl *Tmpl = cast<FunctionTemplateDecl>(*I)) {
+ } else if (FunctionTemplateDecl *Tmpl =
+ dyn_cast<FunctionTemplateDecl>(*I)) {
AddTemplateOverloadCandidate(Tmpl, DeclAccessPair::make(Tmpl, AS_public),
0, &Arg, NumArgs, OCS, true);
}
More information about the cfe-commits
mailing list