File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2273,12 +2273,13 @@ void CodeGenModule::EmitDeferred() {
2273
2273
auto DDI = DeferredDecls.find (AliaseeName);
2274
2274
// Emit what is aliased first.
2275
2275
if (DDI != DeferredDecls.end ()) {
2276
- llvm::GlobalValue *AliaseeGV = dyn_cast<llvm::GlobalValue>(
2277
- GetAddrOfGlobal (DDI->second , ForDefinition));
2276
+ GlobalDecl GD = DDI->second ;
2277
+ llvm::GlobalValue *AliaseeGV =
2278
+ dyn_cast<llvm::GlobalValue>(GetAddrOfGlobal (GD, ForDefinition));
2278
2279
if (!AliaseeGV)
2279
- AliaseeGV = GetGlobalValue (getMangledName (DDI-> second ));
2280
+ AliaseeGV = GetGlobalValue (getMangledName (GD ));
2280
2281
assert (AliaseeGV);
2281
- EmitGlobalDefinition (DDI-> second , AliaseeGV);
2282
+ EmitGlobalDefinition (GD , AliaseeGV);
2282
2283
// Remove the entry just added to the DeferredDeclsToEmit
2283
2284
// since we have emitted it.
2284
2285
DeferredDeclsToEmit.pop_back ();
You can’t perform that action at this time.
0 commit comments