File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1660,12 +1660,13 @@ Error LinuxKernelRewriter::readStaticKeysJumpTable() {
1660
1660
DataExtractor::Cursor Cursor (StaticKeysJumpTableAddress - SectionAddress);
1661
1661
uint32_t EntryID = 0 ;
1662
1662
while (Cursor && Cursor.tell () < Stop->getAddress () - SectionAddress) {
1663
+ uint64_t _;
1663
1664
const uint64_t JumpAddress =
1664
- SectionAddress + Cursor.tell () + (int32_t )DE.getU32 (Cursor);
1665
+ (_ = SectionAddress + Cursor.tell (), _ + (int32_t )DE.getU32 (Cursor) );
1665
1666
const uint64_t TargetAddress =
1666
- SectionAddress + Cursor.tell () + (int32_t )DE.getU32 (Cursor);
1667
+ (_ = SectionAddress + Cursor.tell (), _ + (int32_t )DE.getU32 (Cursor) );
1667
1668
const uint64_t KeyAddress =
1668
- SectionAddress + Cursor.tell () + (int64_t )DE.getU64 (Cursor);
1669
+ (_ = SectionAddress + Cursor.tell (), _ + (int64_t )DE.getU64 (Cursor) );
1669
1670
1670
1671
// Consume the status of the cursor.
1671
1672
if (!Cursor)
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ _start:
35
35
.L0:
36
36
jmp L1
37
37
# CHECK: jit
38
- # CHECK-SAME: # ID: 1 {{.*}} # Likely: 0 # InitValue: 1
38
+ # CHECK-SAME: # ID: 1 {{.*}} # Likely: 1 # InitValue: 0
39
39
nop
40
40
L1:
41
41
.nops 5
42
42
jmp .L0
43
43
# CHECK: jit
44
- # CHECK-SAME: # ID: 2 {{.*}} # Likely: 1 # InitValue: 1
44
+ # CHECK-SAME: # ID: 2 {{.*}} # Likely: 0 # InitValue: 0
45
45
46
46
## Check that a branch profile associated with a NOP is handled properly when
47
47
## dynamic branch is created.
65
65
.rodata
66
66
.globl __start___jump_table
67
67
.type __start___jump_table, %object
68
+ .align 8
68
69
__start___jump_table:
69
70
70
71
.long .L0 - . # Jump address
You can’t perform that action at this time.
0 commit comments