Skip to content

Commit 8e1c748

Browse files
alexander-penevmcbarton
authored andcommitted
Fix demangle build
1 parent cb85568 commit 8e1c748

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3393,8 +3393,8 @@ namespace Cpp {
33933393
if (!is_demangle_active) {
33943394
auto& I = getInterp();
33953395
llvm::orc::LLJIT& EE = *compat::getExecutionEngine(I);
3396-
auto t = EE.getTargetMachine().getTargetTriple();
3397-
demangle = t.isOSDarwin() || t.isWindows();
3396+
auto t = EE.getTargetTriple();
3397+
demangle = t.isOSDarwin() || t.isOSWindows();
33983398
is_demangle_active = true;
33993399
}
34003400

@@ -3404,7 +3404,6 @@ namespace Cpp {
34043404
// FIXME: get this information from the DataLayout via getGlobalPrefix()!
34053405
if (demangle && nameForDlsym[0] == '_')
34063406
nameForDlsym.erase(0, 1);
3407-
}
34083407
return nameForDlsym;
34093408
}
34103409

0 commit comments

Comments
 (0)