[cfi] Lazy initialization of CFI interceptors
authorVitaly Buka <vitalybuka@google.com>
Sat, 24 Feb 2018 06:58:56 +0000 (06:58 +0000)
committerVitaly Buka <vitalybuka@google.com>
Sat, 24 Feb 2018 06:58:56 +0000 (06:58 +0000)
commit1aa98f4294861f3021f52c00ca4cc57403410de9
treedcbd9fb19bd17cbfd853cfd8f27902d97e762ebe
parentd8cea35360fcc9cc7566b15c92665e933ea43775
[cfi] Lazy initialization of CFI interceptors

Summary:
Interceptors initialization may need to allocate memory. So if we initialize too
early we can crash in non initialized allocator.

Reviewers: pcc, eugenis

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D43669

llvm-svn: 326025
compiler-rt/lib/cfi/cfi.cc