HomePhabricator

[cfi][test] cross-dso/stats.cpp: don't assume the order of static constructors

Authored by MaskRay on Jan 8 2020, 3:44 PM.

Description

[cfi][test] cross-dso/stats.cpp: don't assume the order of static constructors

__sanitizer_stat_init is called for the executable first, then the
shared object. In WriterModuleReport(), the information for the shared
object will be recorded first. It'd be nice to get rid of the order
requirement of static constructors. (This should make .ctors platforms
work.)

Details

Committed
MaskRayJan 8 2020, 3:50 PM
Parents
rGf84d3200528a: [MLIR] Don't use SSA names directly for std.view canonicalization test
Branches
Unknown
Tags
Unknown