[llvm] r194901 - DwarfCompileUnit: Remove unnecessary OwningPtr<T>::get() call
David Blaikie
dblaikie at gmail.com
Fri Nov 15 16:28:15 PST 2013
Author: dblaikie
Date: Fri Nov 15 18:28:15 2013
New Revision: 194901
URL: http://llvm.org/viewvc/llvm-project?rev=194901&view=rev
Log:
DwarfCompileUnit: Remove unnecessary OwningPtr<T>::get() call
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=194901&r1=194900&r2=194901&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Fri Nov 15 18:28:15 2013
@@ -1591,7 +1591,7 @@ void CompileUnit::createGlobalVariableDI
if (GVContext && GV.isDefinition() && !GVContext.isCompileUnit() &&
!GVContext.isFile() && !DD->isSubprogramContext(GVContext)) {
// Create specification DIE.
- VariableSpecDIE = createAndAddDIE(dwarf::DW_TAG_variable, *CUDie.get());
+ VariableSpecDIE = createAndAddDIE(dwarf::DW_TAG_variable, *CUDie);
addDIEEntry(VariableSpecDIE, dwarf::DW_AT_specification, VariableDIE);
addBlock(VariableSpecDIE, dwarf::DW_AT_location, Block);
// A static member's declaration is already flagged as such.
More information about the llvm-commits
mailing list