From fa2fc906d2708be6e868e80fec4806f24dcd6f2b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 28 Feb 2018 00:06:01 +0000 Subject: Pass a GlobalDecl to setAliasAttributes. NFC. This just makes a followup change easier to read. llvm-svn: 326270 --- clang/lib/CodeGen/CodeGenModule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 36a0b9e9e4f..56eb8ada481 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1248,8 +1248,8 @@ void CodeGenModule::SetCommonAttributes(const Decl *D, addUsedGlobal(GV); } -void CodeGenModule::setAliasAttributes(const Decl *D, - llvm::GlobalValue *GV) { +void CodeGenModule::setAliasAttributes(GlobalDecl GD, llvm::GlobalValue *GV) { + const Decl *D = GD.getDecl(); SetCommonAttributes(D, GV); // Process the dllexport attribute based on whether the original definition @@ -3675,7 +3675,7 @@ void CodeGenModule::EmitAliasDefinition(GlobalDecl GD) { if (VD->getTLSKind()) setTLSMode(GA, *VD); - setAliasAttributes(D, GA); + setAliasAttributes(GD, GA); } void CodeGenModule::emitIFuncDefinition(GlobalDecl GD) { -- cgit v1.2.3