You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[libclc] Several little QOL improvements to libclc-remangler (#13073)
-----
[libclc] Update deprecated method use in remangler
llvm::StringRef::startswith -> llvm::StringRef::starts_with
-----
[libclc] Fix up improper use of ExitOnError
ExitOnError takes a llvm::Expected, but we were passing it the result of
llvm::parseIR - std::unique_ptr<llvm::Module> - which, even when null,
is
not an error condition. Thus invalid IR input was silently being
accepted until it would segfault on accessing the module.
-----
[libclc] Open remangler file system at PWD, not root
I don't think there's any reason to open it at root. Opening it at the
current working directory is more intuitive for developers using
relative paths for input/output files.
Previously "--input-ir foo.ll" would try and open "/foo.ll", which
depending on the system is likely a permissions error, or a missing
file, or even an unintended file.
-----
0 commit comments