diff options
author | Amir Ayupov <aaupov@fb.com> | 2024-05-09 19:10:06 -0700 |
---|---|---|
committer | Amir Ayupov <aaupov@fb.com> | 2024-05-09 19:10:06 -0700 |
commit | e582ab20bee763906b433b30bbee07541d036901 (patch) | |
tree | 7c758dd7b8ac32d945728639ad3528a1dce1110a | |
parent | a3ecfb7af8a5a55f6a8cdd1416ac363130469b85 (diff) | |
parent | 5612f9111121cfd3a1e763af2ff0423ebf35e3b6 (diff) | |
download | llvm-users/aaupov/spr/bolt-eliminate-dead-jump-tables.zip llvm-users/aaupov/spr/bolt-eliminate-dead-jump-tables.tar.gz llvm-users/aaupov/spr/bolt-eliminate-dead-jump-tables.tar.bz2 |
clang-formatusers/aaupov/spr/bolt-eliminate-dead-jump-tables
Created using spr 1.3.4
-rw-r--r-- | bolt/lib/Core/BinaryFunction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bolt/lib/Core/BinaryFunction.cpp b/bolt/lib/Core/BinaryFunction.cpp index 5f145e7..124e4d1 100644 --- a/bolt/lib/Core/BinaryFunction.cpp +++ b/bolt/lib/Core/BinaryFunction.cpp @@ -1792,7 +1792,7 @@ void BinaryFunction::postProcessJumpTables() { // Remove dead jump tables (reference removed as a result of // POSSIBLE_PIC_FIXED_BRANCH optimization). - for (auto JTI = JumpTables.begin(), JTE = JumpTables.end(); JTI != JTE; ) { + for (auto JTI = JumpTables.begin(), JTE = JumpTables.end(); JTI != JTE;) { const uint64_t Address = JTI->first; JumpTable *JT = JTI->second; bool HasOneParent = JT->Parents.size() == 1; @@ -1804,7 +1804,6 @@ void BinaryFunction::postProcessJumpTables() { } ++JTI; } - } bool BinaryFunction::validateExternallyReferencedOffsets() { |