diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-28 00:06:01 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-28 00:06:01 +0000 |
commit | fa2fc906d2708be6e868e80fec4806f24dcd6f2b (patch) | |
tree | b1431f5d01c8761cbd5f0198554c1253ddfc5851 /clang/lib/CodeGen/CGCXX.cpp | |
parent | 37254065ddd3d4a85450b04a2e7ba2b8ae4439fe (diff) | |
download | bcm5719-llvm-fa2fc906d2708be6e868e80fec4806f24dcd6f2b.tar.gz bcm5719-llvm-fa2fc906d2708be6e868e80fec4806f24dcd6f2b.zip |
Pass a GlobalDecl to setAliasAttributes. NFC.
This just makes a followup change easier to read.
llvm-svn: 326270
Diffstat (limited to 'clang/lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp index d50e4bc0551..e56be9c403a 100644 --- a/clang/lib/CodeGen/CGCXX.cpp +++ b/clang/lib/CodeGen/CGCXX.cpp @@ -205,7 +205,7 @@ bool CodeGenModule::TryEmitDefinitionAsAlias(GlobalDecl AliasDecl, } // Finally, set up the alias with its proper name and attributes. - setAliasAttributes(cast<NamedDecl>(AliasDecl.getDecl()), Alias); + setAliasAttributes(AliasDecl, Alias); return false; } |