1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Delete dead code introduced in r347354.

ParentTy is never used other than an assignment, and since it is a
pointer, there is no side effect. Some versions of GCC notice and warn
on this.

Change-Id: I37dc1a18c7b58040419afb803621de13d8904a8f
llvm-svn: 347581
This commit is contained in:
Erich Keane 2018-11-26 17:51:27 +00:00
parent c2a2016825
commit 3b02ffb8a5

View File

@ -2460,10 +2460,6 @@ CodeViewDebug::getTypeIndexForThisPtr(DITypeRef TypeRef,
// so that the TypeIndex for the this pointer can be shared with the type // so that the TypeIndex for the this pointer can be shared with the type
// index for other pointers to this class type. If there is a ref qualifier // index for other pointers to this class type. If there is a ref qualifier
// then we lookup the pointer using the subroutine as the parent type. // then we lookup the pointer using the subroutine as the parent type.
const DIType *ParentTy = nullptr;
if (Options != PointerOptions::None)
ParentTy = SubroutineTy;
auto I = TypeIndices.find({Ty, SubroutineTy}); auto I = TypeIndices.find({Ty, SubroutineTy});
if (I != TypeIndices.end()) if (I != TypeIndices.end())
return I->second; return I->second;