[DFSan] Support fast16labels mode in dfsan_union.
authorMatt Morehouse <mascasa@google.com>
Mon, 17 Aug 2020 18:27:16 +0000 (11:27 -0700)
committerMatt Morehouse <mascasa@google.com>
Mon, 17 Aug 2020 18:27:28 +0000 (11:27 -0700)
commit69721fc9d1b5df9a7a32d2fee6d72c8c7c9bf644
tree94841d1e7b45b85041ea87480f395e72925a84a3
parent3060894bbb34937707d7db4d30485ecc98e62497
[DFSan] Support fast16labels mode in dfsan_union.

While the instrumentation never calls dfsan_union in fast16labels mode,
the custom wrappers do.  We detect fast16labels mode by checking whether
any labels have been created.  If not, we must be using fast16labels
mode.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D86012
compiler-rt/lib/dfsan/dfsan.cpp
compiler-rt/test/dfsan/custom.cpp