r256023 - Fix an unused variable warning from r256012.

Adrian Prantl via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 18 12:44:06 PST 2015


Thanks, Chad!

-- adrian
> On Dec 18, 2015, at 12:08 PM, Chad Rosier via cfe-commits <cfe-commits at lists.llvm.org> wrote:
> 
> Author: mcrosier
> Date: Fri Dec 18 14:08:40 2015
> New Revision: 256023
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=256023&view=rev
> Log:
> Fix an unused variable warning from r256012.
> 
> Modified:
>    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
> 
> Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=256023&r1=256022&r2=256023&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Dec 18 14:08:40 2015
> @@ -3444,7 +3444,7 @@ void CGDebugInfo::EmitUsingDecl(const Us
> 
> 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<Decl>(ID.getDeclContext())),
>         getOrCreateModuleRef(Info, DebugTypeExtRefs),
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list