From e5dafd176555e9ea564889247737fec4d622fb9e 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. llvm-svn: 256023 --- clang/lib/CodeGen/CGDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 581f2f9fa086..78e3978e0ff9 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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.34.1