After https://reviews.llvm.org/D129237, the assumption that any non-null data contains a valid vmar handle is no longer true. Generally this code here needs cleanup, but in the meantime this fixes errors on Fuchsia.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/scudo/standalone/fuchsia.cpp | ||
---|---|---|
60 | It's better not to call the function unconditionally, especially since it's a PLT jump. |
It's better not to call the function unconditionally, especially since it's a PLT jump.
You can use = (Data && Data->Vmar != ZX_HANDLE_INVALID) ? Data->Vmar : _zx_vmar_root_self(); instead.