[llvm-commits] [llvm] r72057 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Bill Wendling isanbard at gmail.com
Mon May 18 15:33:01 PDT 2009


Author: void
Date: Mon May 18 17:33:01 2009
New Revision: 72057

URL: http://llvm.org/viewvc/llvm-project?rev=72057&view=rev
Log:
Small code cleanup.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=72057&r1=72056&r2=72057&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon May 18 17:33:01 2009
@@ -2463,15 +2463,10 @@
           SmallSet<const GlobalVariable *, 32> >::iterator
           IP = InlinedParamMap.find(V);
 
-        if (IP != InlinedParamMap.end()) {
-          SmallSet<const GlobalVariable*, 32> &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.





More information about the llvm-commits mailing list