IPO: Avoid brace initialization of a map, some versions of libc++ don't like it

Should fix the build failure on these darwin bots:

http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-incremental_build/12427/
http://lab.llvm.org:8080/green/job/clang-stage1-configure-RA_build/10389/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242945 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Justin Bogner 2015-07-22 21:41:12 +00:00
parent bc6cbbfa80
commit 34e7058dc8

View File

@ -2000,6 +2000,9 @@ struct MutatedGlobal {
GlobalVariable *GV;
Constant *Initializer;
StoreMap Pending;
public:
MutatedGlobal(GlobalVariable *GV) : GV(GV), Initializer(nullptr) {}
};
/// MutatedGlobals - This class tracks and commits stores to globals as basic
@ -2047,7 +2050,7 @@ void MutatedGlobals::AddStore(Constant *Ptr, Constant *Value) {
auto I = Globals.find(GV);
if (I == Globals.end()) {
auto R = Globals.insert(std::make_pair(GV, MutatedGlobal{GV, nullptr, {}}));
auto R = Globals.insert(std::make_pair(GV, MutatedGlobal(GV)));
assert(R.second && "Global value already in the map?");
I = R.first;
}