Backed out my last patch which caused a clang-test breakage. Will
look at it later.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74126 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index ae136f6..19fc090 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -5548,7 +5548,7 @@
else
Constructor->setUsed(true);
}
- else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) {
+ if (FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) {
// Implicit instantiation of function templates
if (!Function->getBody(Context)) {
if (Function->getInstantiatedFromMemberFunction())