HomePhabricator

Reland "[AArch64] Fix data race on RegisterBank initialization."

Authored by huihuiz on Feb 7 2020, 12:57 PM.

Description

Reland "[AArch64] Fix data race on RegisterBank initialization."

Update lambda function
static auto InitializeRegisterBankOnce = [this](const auto &TRI) {
with
static auto InitializeRegisterBankOnce = [&]() {

Capture reference instead of passing argument, as there are buildbot
compiling errors related when passing argument.

Details