diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-05-18 22:33:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-05-18 22:33:01 +0000 |
commit | cde5d63d909c2c3b9c2a30cef107f77a7a556deb (patch) | |
tree | 8b5a7c1311f2aa60492d39d2924ad4fcb59f1b68 /lib | |
parent | 39592233304acbbeea8c53bac2b6a822a63a4c4b (diff) | |
download | external_llvm-cde5d63d909c2c3b9c2a30cef107f77a7a556deb.zip external_llvm-cde5d63d909c2c3b9c2a30cef107f77a7a556deb.tar.gz external_llvm-cde5d63d909c2c3b9c2a30cef107f77a7a556deb.tar.bz2 |
Small code cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72057 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 0e2e39e..5ffe1fd 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2463,15 +2463,10 @@ void DwarfDebug::RecordVariable(GlobalVariable *GV, unsigned FrameIndex, 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. |