mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Revert "IPO: Avoid brace initialization of a map, some versions of libc++ don't like it"
This reverts commit fc2dad0c68f8d32273d3c2d790ed496961f829af. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
30b2dba663
commit
63abd4b150
@ -2000,9 +2000,6 @@ struct MutatedGlobal {
|
|||||||
GlobalVariable *GV;
|
GlobalVariable *GV;
|
||||||
Constant *Initializer;
|
Constant *Initializer;
|
||||||
StoreMap Pending;
|
StoreMap Pending;
|
||||||
|
|
||||||
public:
|
|
||||||
MutatedGlobal(GlobalVariable *GV) : GV(GV), Initializer(nullptr) {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// MutatedGlobals - This class tracks and commits stores to globals as basic
|
/// MutatedGlobals - This class tracks and commits stores to globals as basic
|
||||||
@ -2050,7 +2047,7 @@ void MutatedGlobals::AddStore(Constant *Ptr, Constant *Value) {
|
|||||||
|
|
||||||
auto I = Globals.find(GV);
|
auto I = Globals.find(GV);
|
||||||
if (I == Globals.end()) {
|
if (I == Globals.end()) {
|
||||||
auto R = Globals.insert(std::make_pair(GV, MutatedGlobal(GV)));
|
auto R = Globals.insert(std::make_pair(GV, MutatedGlobal{GV, nullptr, {}}));
|
||||||
assert(R.second && "Global value already in the map?");
|
assert(R.second && "Global value already in the map?");
|
||||||
I = R.first;
|
I = R.first;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user