diff options
| author | Erich Keane <erich.keane@intel.com> | 2018-11-26 17:51:27 +0000 |
|---|---|---|
| committer | Erich Keane <erich.keane@intel.com> | 2018-11-26 17:51:27 +0000 |
| commit | e381120477eeb22eb1aecf3ba024ecf7d191cf4e (patch) | |
| tree | 404e6d25a7b40154896341b715ca070996825e13 | |
| parent | 7ae4f5c6de936e829f0eb230ec5bc772dd5889fe (diff) | |
| download | bcm5719-llvm-e381120477eeb22eb1aecf3ba024ecf7d191cf4e.tar.gz bcm5719-llvm-e381120477eeb22eb1aecf3ba024ecf7d191cf4e.zip | |
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
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 6d43143253e..0ef90bc52e5 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -2460,10 +2460,6 @@ CodeViewDebug::getTypeIndexForThisPtr(DITypeRef TypeRef, // 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; |

