Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Zentrik committed Aug 31, 2024
1 parent ae2a778 commit 78165c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ void JITDebugInfoRegistry::registerJITObject(const object::ObjectFile &Object,
uint8_t *catchjmp = NULL;
for (const object::SymbolRef &sym_iter : Object.symbols()) {
StringRef sName = cantFail(sym_iter.getName());
if (sName.equals("__UnwindData") || sName.equals("__catchjmp")) {
if (sName == "__UnwindData" || sName == "__catchjmp") {
uint64_t Addr = cantFail(sym_iter.getAddress());
auto Section = cantFail(sym_iter.getSection());
assert(Section != EndSection && Section->isText());
Expand All @@ -304,10 +304,10 @@ void JITDebugInfoRegistry::registerJITObject(const object::ObjectFile &Object,
if (lookupWriteAddress)
SectionWriteCheck = (uintptr_t)lookupWriteAddress((void*)SectionLoadAddr);
Addr += SectionWriteCheck - SectionLoadCheck;
if (sName.equals("__UnwindData")) {
if (sName == "__UnwindData") {
UnwindData = (uint8_t*)Addr;
}
else if (sName.equals("__catchjmp")) {
else if (sName == "__catchjmp") {
catchjmp = (uint8_t*)Addr;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/llvm-simdloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ static bool processLoop(Loop &L, OptimizationRemarkEmitter &ORE, ScalarEvolution
if (S) {
LLVM_DEBUG(dbgs() << "LSL: found " << S->getString() << "\n");
if (S->getString().starts_with("julia")) {
if (S->getString().equals("julia.simdloop"))
if (S->getString() == "julia.simdloop")
simd = true;
if (S->getString().equals("julia.ivdep"))
if (S->getString() == "julia.ivdep")
ivdep = true;
continue;
}
Expand Down

0 comments on commit 78165c8

Please sign in to comment.