Displaying 1 result from an estimated 1 matches for "handleallerror".
Did you mean:
handleallerrors
2017 Jul 06
2
ErrorInfo::message() possibly broken in LLVM-4.0.1
Hello,
I have the following snippet of code that causes valgrind to freak out
over unitialized bytes.
llvm::Expected<llvm::object::OwningBinary<llvm::object::ObjectFile>> e
= llvm::object::ObjectFile::createObjectFile(llvm::StringRef(fname));
if (!e) {
llvm::handleAllErrors(e.takeError(),
[](const llvm::ErrorInfo<llvm::ECError> &EI) {
std::cerr << EI.message() << std::endl;
});
return 1;
}
Am I doing something wrong here?
--
Will Song