From 74b56e02bda09ae735c6aeca583a2078375f2da1 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Fri, 8 Apr 2022 11:46:08 +0800 Subject: [NFC] Remove unused variable in CodeGenModules This eliminates an unused-variable warning --- clang/lib/CodeGen/CodeGenModule.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index ec34d91e6537..c9e5354d3269 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -5183,11 +5183,9 @@ void CodeGenModule::EmitAliasDefinition(GlobalDecl GD) { SetCommonAttributes(GD, GA); // Emit global alias debug information. - if (const auto *VD = dyn_cast(D)) { - if (CGDebugInfo *DI = getModuleDebugInfo()) { + if (isa(D)) + if (CGDebugInfo *DI = getModuleDebugInfo()) DI->EmitGlobalAlias(cast(GA->getAliasee()), GD); - } - } } void CodeGenModule::emitIFuncDefinition(GlobalDecl GD) { -- cgit v1.2.3