[clang] f55cd39 - [C-index] Fix test when using Debug target & MSVC STL

Alexandre Ganea via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 19 10:30:48 PST 2019


Author: Alexandre Ganea
Date: 2019-11-19T13:30:40-05:00
New Revision: f55cd39f19134392b16bc1fd6c558214778a3bb8

URL: https://github.com/llvm/llvm-project/commit/f55cd39f19134392b16bc1fd6c558214778a3bb8
DIFF: https://github.com/llvm/llvm-project/commit/f55cd39f19134392b16bc1fd6c558214778a3bb8.diff

LOG: [C-index] Fix test when using Debug target & MSVC STL

Avoids a deadlock in "clang/test/Index/crash-recovery-modules.m" when building with the MSVC STL & _ITERATOR_DEBUG_LEVEL == 2 (meaning a DEBUG build)

Differential Revision: https://reviews.llvm.org/D69959

Added: 
    

Modified: 
    clang/include/clang/Frontend/FrontendOptions.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Frontend/FrontendOptions.h b/clang/include/clang/Frontend/FrontendOptions.h
index 09d83adf579b..70eb3425b0da 100644
--- a/clang/include/clang/Frontend/FrontendOptions.h
+++ b/clang/include/clang/Frontend/FrontendOptions.h
@@ -366,7 +366,7 @@ class FrontendOptions {
   std::string ARCMTMigrateReportOut;
 
   /// The input files and their types.
-  std::vector<FrontendInputFile> Inputs;
+  SmallVector<FrontendInputFile, 0> Inputs;
 
   /// When the input is a module map, the original module map file from which
   /// that map was inferred, if any (for umbrella modules).


        


More information about the cfe-commits mailing list