]> granicus.if.org Git - clang/commitdiff
ignore 'using' directive in CodeGenFunction::EmitDecl(). this fixes PR5085
authorNuno Lopes <nunoplopes@sapo.pt>
Fri, 16 Oct 2009 14:40:52 +0000 (14:40 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Fri, 16 Oct 2009 14:40:52 +0000 (14:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84255 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDecl.cpp

index 7feff83dee6bba8a9565cb64184061cd6dd9c0ce..cc0696abaeaab0dccecbad789b18899b0e04c36f 100644 (file)
@@ -37,6 +37,7 @@ void CodeGenFunction::EmitDecl(const Decl &D) {
   case Decl::Enum:      // enum X;
   case Decl::EnumConstant: // enum ? { X = ? }
   case Decl::CXXRecord: // struct/union/class X; [C++]
+  case Decl::UsingDirective: // using X; [C++]
     // None of these decls require codegen support.
     return;