<div dir="ltr"><div>- Consumer.HandleDependentLibrary(Arg);</div><div>+ // If the argument does not end in .lib, automatically add the suffix. This</div><div>+ // matches the behavior of MSVC.</div><div>+ std::string ArgStr = Arg;</div>
<div>+ StringRef End = Arg.substr( Arg.size() - 4 );</div><div><br></div><div style>Looks like it's not safe if Arg.size() < 4.</div></div>