[llvm] r347581 - Delete dead code introduced in r347354.
Erich Keane via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 26 09:51:27 PST 2018
Author: erichkeane
Date: Mon Nov 26 09:51:27 2018
New Revision: 347581
URL: http://llvm.org/viewvc/llvm-project?rev=347581&view=rev
Log:
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
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp?rev=347581&r1=347580&r2=347581&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp Mon Nov 26 09:51:27 2018
@@ -2460,10 +2460,6 @@ CodeViewDebug::getTypeIndexForThisPtr(DI
// 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
// 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});
if (I != TypeIndices.end())
return I->second;
More information about the llvm-commits
mailing list