mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
LLParser: Avoid copying ValIDs, the copy ctor is deprecated in C++11 due to the presence of a user-declared dtor
llvm-svn: 231199
This commit is contained in:
parent
eb2f517737
commit
e3c56b2d84
@ -2512,7 +2512,12 @@ bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
|
||||
|
||||
if (!F) {
|
||||
// Make a global variable as a placeholder for this reference.
|
||||
GlobalValue *&FwdRef = ForwardRefBlockAddresses[Fn][Label];
|
||||
GlobalValue *&FwdRef =
|
||||
ForwardRefBlockAddresses.insert(std::make_pair(
|
||||
std::move(Fn),
|
||||
std::map<ValID, GlobalValue *>()))
|
||||
.first->second.insert(std::make_pair(std::move(Label), nullptr))
|
||||
.first->second;
|
||||
if (!FwdRef)
|
||||
FwdRef = new GlobalVariable(*M, Type::getInt8Ty(Context), false,
|
||||
GlobalValue::InternalLinkage, nullptr, "");
|
||||
|
Loading…
Reference in New Issue
Block a user