From 1f9949dbeeb0952d047238b29870b3395563c2bb Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 18 Dec 2015 20:08:40 +0000 Subject: [PATCH] Fix an unused variable warning from r256012. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256023 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 581f2f9fa0..78e3978e0f 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -3444,7 +3444,7 @@ void CGDebugInfo::EmitUsingDecl(const UsingDecl &UD) { void CGDebugInfo::EmitImportDecl(const ImportDecl &ID) { if (Module *M = ID.getImportedModule()) { - auto Info = ExternalASTSource::ASTSourceDescriptor(*ID.getImportedModule()); + auto Info = ExternalASTSource::ASTSourceDescriptor(*M); DBuilder.createImportedDeclaration( getCurrentContextDescriptor(cast(ID.getDeclContext())), getOrCreateModuleRef(Info, DebugTypeExtRefs), -- 2.40.0