[cfe-commits] r74108 - /cfe/trunk/lib/Sema/SemaExpr.cpp

Fariborz Jahanian fjahanian at apple.com
Wed Jun 24 12:25:15 PDT 2009


Author: fjahanian
Date: Wed Jun 24 14:24:38 2009
New Revision: 74108

URL: http://llvm.org/viewvc/llvm-project?rev=74108&view=rev
Log:
Added a missing else part to my previous patche(s).


Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=74108&r1=74107&r2=74108&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Wed Jun 24 14:24:38 2009
@@ -5548,8 +5548,7 @@
     else
       Constructor->setUsed(true);
   } 
-  
-  if (FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) {
+  else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) {
     // Implicit instantiation of function templates
     if (!Function->getBody(Context)) {
       if (Function->getInstantiatedFromMemberFunction())





More information about the cfe-commits mailing list