Skip to content

Commit f0e2562

Browse files
Revert trivial diffs in MetadataRequest.cpp
Most of the changes were reveted when we support relative pointer
1 parent 53c4250 commit f0e2562

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/IRGen/MetadataRequest.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3080,15 +3080,13 @@ emitMetadataAccessByMangledName(IRGenFunction &IGF, CanType type,
30803080
IGM.Int32Ty);
30813081
stringAddrOffset = subIGF.Builder.CreateSExtOrBitCast(stringAddrOffset,
30823082
IGM.SizeTy);
3083-
3084-
llvm::Value *stringAddr;
30853083
auto stringAddrBase = subIGF.Builder.CreatePtrToInt(cache, IGM.SizeTy);
30863084
if (IGM.getModule()->getDataLayout().isBigEndian()) {
30873085
stringAddrBase = subIGF.Builder.CreateAdd(stringAddrBase,
30883086
llvm::ConstantInt::get(IGM.SizeTy, 4));
30893087
}
3090-
stringAddr = subIGF.Builder.CreateAdd(stringAddrBase,
3091-
stringAddrOffset);
3088+
auto stringAddr = subIGF.Builder.CreateAdd(stringAddrBase,
3089+
stringAddrOffset);
30923090
stringAddr = subIGF.Builder.CreateIntToPtr(stringAddr, IGM.Int8PtrTy);
30933091

30943092
llvm::CallInst *call;

0 commit comments

Comments
 (0)