Skip to content

Commit 72ff4e3

Browse files
author
anoopkg6
committed
Fix build error
1 parent 0423532 commit 72ff4e3

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

llvm/include/llvm/ExecutionEngine/JITLink/systemz.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,16 +992,15 @@ class GOTTableManager : public TableManager<GOTTableManager> {
992992
case systemz::Delta64FromGOT:
993993
case systemz::Delta12JumpSlot:
994994
case systemz::Delta16JumpSlot:
995+
case systemz::Delta20JumpSlot:
995996
case systemz::Delta32JumpSlot:
996997
case systemz::Delta64JumpSlot:
997-
case systemz::Delta20JumpSlot: {
998998
case systemz::DeltaPCRelGOT:
999999
case systemz::DeltaPCRelGOTdbl:
10001000
case systemz::PCRel32GOTEntry:
10011001
case systemz::PCRel32JumpSlot:
10021002
KindToSet = E.getKind();
10031003
break;
1004-
}
10051004
default:
10061005
return false;
10071006
}

llvm/lib/ExecutionEngine/JITLink/systemz.cpp

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,20 @@ const char NullPointerContent[8] = {0x00, 0x00, 0x00, 0x00,
2222
0x00, 0x00, 0x00, 0x00};
2323

2424
const char Pointer64JumpStubContent[14] = {
25-
static_cast<char>(0xC0), 0x10, 0x00, 0x00, 0x00, 0x00, // larl r1
26-
static_cast<char>(0xE3), 0x10, 0x10, 0x00, 0x00, 0x04, // LG 1, 0(1)
27-
static_cast<char>(0x07), 0xF1, // BCR 15, 1
25+
static_cast<char>(0xC0u),
26+
0x10,
27+
0x00,
28+
0x00,
29+
0x00,
30+
0x00, // larl r1
31+
static_cast<char>(0xE3u),
32+
0x10,
33+
0x10,
34+
0x00,
35+
0x00,
36+
0x04, // LG 1, 0(1)
37+
static_cast<char>(0x07u),
38+
static_cast<char>(0xF1u), // BCR 15, 1
2839
};
2940

3041
const char *getEdgeKindName(Edge::Kind R) {

0 commit comments

Comments
 (0)