diff options
author | Erich Keane <erich.keane@intel.com> | 2018-02-12 17:01:41 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2018-02-12 17:01:41 +0000 |
commit | 93e58667ee1030f36affff0cc5c43e404be19523 (patch) | |
tree | ee537870827d464ee92e4f4e5a77f0f405068e4d /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 1022220b16123d918fa885b86fd3ca2b3b5683f1 (diff) | |
download | bcm5719-llvm-93e58667ee1030f36affff0cc5c43e404be19523.tar.gz bcm5719-llvm-93e58667ee1030f36affff0cc5c43e404be19523.zip |
Make attribute-target on a Definition-after-use update the LLVM attributes
As reported here: https://bugs.llvm.org/show_bug.cgi?id=36301
The issue is that the 'use' causes the plain declaration to emit
the attributes to LLVM-IR. However, if the definition added it
later, these would silently disappear.
This commit extracts that logic to its own function in CodeGenModule,
and has the attribute-applications done during 'definition' update
the attributes properly.
Differential Revision: https://reviews.llvm.org/D43095
llvm-svn: 324907
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions