diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2009-10-16 14:40:52 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2009-10-16 14:40:52 +0000 |
commit | 77378b25cd11d6464eb74a6b436231589b750270 (patch) | |
tree | cbf25b2628108b4287be1a557eb4fcb2210e6c02 /lib/CodeGen/CGDecl.cpp | |
parent | 528365d3189d27f3a90a4012baaa8b2814e0a231 (diff) |
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
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |