[scudo] Check if we use __clang_major__ >= 12
authorVitaly Buka <vitalybuka@google.com>
Fri, 9 Jul 2021 19:24:50 +0000 (12:24 -0700)
committerVitaly Buka <vitalybuka@google.com>
Sat, 10 Jul 2021 00:48:44 +0000 (17:48 -0700)
commitdb4c25822a1d9458f961eeb6cecf8a7bbce05b13
treeda7421d39a560ddd4aba9f2ee6d9538d730135a0
parent9c4baf5101e9ee55bfae1ce7657a7b89a06b4ccf
[scudo] Check if we use __clang_major__ >= 12

This makes sure we have support for MTE instructions.
Later the check can be extended to support MTE on other compilers.

Reviewed By: pcc

Differential Revision: https://reviews.llvm.org/D105722
compiler-rt/lib/scudo/standalone/memtag.h