From 1992f86733e36cc2b48464b6338a80b6b567b6fd Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 18 May 2009 22:33:01 +0000 Subject: Small code cleanup. llvm-svn: 72057 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 0e2e39eea23..5ffe1fdf160 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2463,15 +2463,10 @@ void DwarfDebug::RecordVariable(GlobalVariable *GV, unsigned FrameIndex, SmallSet >::iterator IP = InlinedParamMap.find(V); - if (IP != InlinedParamMap.end()) { - SmallSet &S = IP->second; - - if (S.count(GV) > 0) { - if (TimePassesIsEnabled) - DebugTimer->stopTimer(); - return; - } - + if (IP != InlinedParamMap.end() && IP->second.count(GV) > 0) { + if (TimePassesIsEnabled) + DebugTimer->stopTimer(); + return; } // or GV is an inlined local variable. -- cgit v1.2.3