HomePhabricator

[Host] File::GetWaitableHandle() should call fileno()

Authored by JDevlieghere on Sep 23 2019, 12:34 PM.

Description

[Host] File::GetWaitableHandle() should call fileno()

If the file has m_stream, it may not have a m_descriptor.
GetWaitableHandle() should call GetDescriptor(), which will call
fileno(), so it will get waitable descriptor whenever one is available.

Patch by: Lawrence D'Anna

Differential revision: https://reviews.llvm.org/D67789

llvm-svn: 372644

Details

Committed
JDevlieghereSep 23 2019, 12:34 PM
Differential Revision
D67789: bugfix: File::GetWaitableHandle() should call fileno()
Parents
rG869ef0a62795: [ABISysV] Fix regression for Simulator and MacABI
Branches
Unknown
Tags
Unknown