File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
llvm/lib/ExecutionEngine/RuntimeDyld Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -118,15 +118,14 @@ bool RuntimeDyldCOFF::isCompatibleFile(const object::ObjectFile &Obj) const {
118118 return Obj.isCOFF ();
119119}
120120
121- bool RuntimeDyldCOFF::relocationNeedsDLLImportStub (const RelocationRef &R) const {
121+ bool RuntimeDyldCOFF::relocationNeedsDLLImportStub (
122+ const RelocationRef &R) const {
122123 object::symbol_iterator Symbol = R.getSymbol ();
123124 Expected<StringRef> TargetNameOrErr = Symbol->getName ();
124125 if (!TargetNameOrErr)
125126 return false ;
126127
127- StringRef TargetName = *TargetNameOrErr;
128-
129- return TargetName.startswith (getImportSymbolPrefix ());
128+ return TargetNameOrErr->startswith (getImportSymbolPrefix ());
130129}
131130
132131} // namespace llvm
You can’t perform that action at this time.
0 commit comments