[Lldb-commits] [lldb] r373206 - [lldb][NFC][modern-type-lookup] Remove while(false) behind if() {}

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 30 06:08:08 PDT 2019


Author: teemperor
Date: Mon Sep 30 06:08:08 2019
New Revision: 373206

URL: http://llvm.org/viewvc/llvm-project?rev=373206&view=rev
Log:
[lldb][NFC][modern-type-lookup] Remove while(false) behind if() {}

This was originally a 'do { ... } while (false);' like in the rest
of the function, but the do was refactored into an 'if' without
also removing the trailing 'while(false);'

Modified:
    lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp

Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp?rev=373206&r1=373205&r2=373206&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp (original)
+++ lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp Mon Sep 30 06:08:08 2019
@@ -129,8 +129,6 @@ void ClangASTSource::InstallASTContext(c
                          *scratch_ast_context->getFileManager(),
                          scratch_ast_context->GetOriginMap()});
     }
-    while (false)
-      ;
 
     m_merger_up =
         std::make_unique<clang::ExternalASTMerger>(target, sources);




More information about the lldb-commits mailing list