mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Use unique_ptr for the result of Registry entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -70,7 +70,7 @@ GCStrategy *GCModuleInfo::getOrCreateStrategy(const Module *M,
|
||||
for (GCRegistry::iterator I = GCRegistry::begin(),
|
||||
E = GCRegistry::end(); I != E; ++I) {
|
||||
if (Name == I->getName()) {
|
||||
std::unique_ptr<GCStrategy> S(I->instantiate());
|
||||
std::unique_ptr<GCStrategy> S = I->instantiate();
|
||||
S->M = M;
|
||||
S->Name = Name;
|
||||
StrategyMap.GetOrCreateValue(Name).setValue(S.get());
|
||||
|
Reference in New Issue
Block a user