We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bda1a0 commit c20cb55Copy full SHA for c20cb55
llvm/lib/ExecutionEngine/JITLink/x86_64.cpp
@@ -76,9 +76,11 @@ Error optimize_x86_64_GOTAndStubs(LinkGraph &G) {
76
for (auto &E : B->edges()) {
77
if (E.getKind() == x86_64::PCRel32GOTLoadRelaxable ||
78
E.getKind() == x86_64::PCRel32GOTLoadREXRelaxable) {
79
+#ifndef NDEBUG
80
bool REXPrefix = E.getKind() == x86_64::PCRel32GOTLoadREXRelaxable;
81
assert(E.getOffset() >= (REXPrefix ? 3 : 2) &&
82
"GOT edge occurs too early in block");
83
+#endif
84
auto *FixupData = reinterpret_cast<uint8_t *>(
85
const_cast<char *>(B->getContent().data())) +
86
E.getOffset();
0 commit comments