aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDani <DanielKristofKiss@users.noreply.github.com>2024-02-23 09:04:33 +0100
committerGitHub <noreply@github.com>2024-02-23 09:04:33 +0100
commit531e8c26b3f2626e7f1a997e0e8b61d67d10aded (patch)
tree62e1f4c443f6eff515e4a2317b0ad8517b43502c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent354401f8d3dc08ed41895d03a12a122e9cc0482c (diff)
downloadllvm-531e8c26b3f2626e7f1a997e0e8b61d67d10aded.zip
llvm-531e8c26b3f2626e7f1a997e0e8b61d67d10aded.tar.gz
llvm-531e8c26b3f2626e7f1a997e0e8b61d67d10aded.tar.bz2
[llvm][AArch64] Autoupgrade function attributes from Module attributes. (#80640)
`sign-return-address` and similar module attributes should be propagated to the function level before modules got merged because module flags may contradict and this information is not recoverable. Generated code will match with the normal linking flow.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 832907a..8c86010 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -6706,7 +6706,7 @@ Error BitcodeReader::materialize(GlobalValue *GV) {
}
// Look for functions that rely on old function attribute behavior.
- UpgradeFunctionAttributes(*F);
+ UpgradeFunctionAttributes(*F, true);
// Bring in any functions that this function forward-referenced via
// blockaddresses.