From 77378b25cd11d6464eb74a6b436231589b750270 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 16 Oct 2009 14:40:52 +0000 Subject: [PATCH] ignore 'using' directive in CodeGenFunction::EmitDecl(). this fixes PR5085 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84255 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDecl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 7feff83dee..cc0696abae 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -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; -- 2.40.0