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 | 2eeb108d59c1610850655bfe1dfd1b7647b5f5dc (patch) | |
tree | aba014f9a6a5c5b41e9ec5d736bff4ad79b2c40e /lib/CodeGen/CGCXX.cpp | |
parent | bee15dcc3204a3fdd467418df9ee7926b9516ee8 (diff) | |
download | clang-2eeb108d59c1610850655bfe1dfd1b7647b5f5dc.tar.gz |
Pass a GlobalDecl to setAliasAttributes. NFC.
This just makes a followup change easier to read.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index d50e4bc055..e56be9c403 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/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; } |