[llvm] r278338 - Restore "Resolution-based LTO API."
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 26 10:56:00 PDT 2016
> + Expected<const Comdat *> getComdat() const {
> + const GlobalObject *GO;
> + if (auto *GA = dyn_cast<GlobalAlias>(GV)) {
> + GO = GA->getBaseObject();
> + if (!GO)
> + return make_error<StringError>("Unable to determine comdat of alias!",
> + inconvertibleErrorCode());
> + } else {
> + GO = cast<GlobalObject>(GV);
> + }
> + if (GV)
This should be "if (GO)", no?
Cheers,
Rafael
More information about the llvm-commits
mailing list