Код: Выделить всё
LLVMParser::LLVMParser(std::string irName){
llvm::LLVMContext Context;
llvm::SMDiagnostic Err;
auto mod = llvm::parseIRFile(irName, Err, Context);
module = std::move(mod);
llvm::outs()
Подробнее здесь: [url]https://stackoverflow.com/questions/79372957/unique-ptr-to-llvm-module-contains-invalide-pointer[/url]
Мобильная версия