summaryrefslogtreecommitdiff
path: root/lld/ELF/InputFiles.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-10-11 18:35:02 -0700
committerFangrui Song <i@maskray.me>2024-10-11 18:35:02 -0700
commit1c28f3113377da218d67dc76aa0876b6250ceb6a (patch)
tree54a310b9bb92c4bf0be5cc0ff43c5a797f758ba2 /lld/ELF/InputFiles.cpp
parent24ac6cf4f7fe0dd4358614066e6159130f7f11e7 (diff)
[ELF] Pass Ctx &
Diffstat (limited to 'lld/ELF/InputFiles.cpp')
-rw-r--r--lld/ELF/InputFiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 39a78a65bd7c..a88fcd08d98c 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -649,7 +649,7 @@ template <class ELFT> void ObjFile<ELFT>::parse(bool ignoreComdats) {
// medatada, and we don't want them to end up in the output file for static
// executables.
if (sec.sh_type == SHT_AARCH64_MEMTAG_GLOBALS_STATIC &&
- !canHaveMemtagGlobals()) {
+ !canHaveMemtagGlobals(ctx)) {
this->sections[i] = &InputSection::discarded;
continue;
}