Allow build with libc++ (#85)

This commit is contained in:
ur4t
2025-02-19 19:22:42 +08:00
committed by GitHub
parent 1b8d22f2b4
commit 5e29848f24
13 changed files with 27 additions and 28 deletions

View File

@@ -20,7 +20,7 @@ PCMInfo buildPCM(llvm::StringRef file, llvm::StringRef code) {
PCMInfo pcm;
if(!compile(params, pcm)) {
llvm::errs() << "Failed to build PCM\n";
std::terminate();
std::abort();
}
return pcm;
@@ -35,7 +35,7 @@ ModuleInfo scan(llvm::StringRef content) {
auto info = scanModule(params);
if(!info) {
llvm::errs() << "Failed to scan module\n";
std::terminate();
std::abort();
}
return std::move(*info);
}