[clang] 27e0077 - Try to make msvc crash less

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 7 09:07:15 PDT 2020


Author: Benjamin Kramer
Date: 2020-06-07T18:07:07+02:00
New Revision: 27e0077dcf0a868072fb31e68b0c1ca0e249e775

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

LOG: Try to make msvc crash less

llvm-project\clang\lib\Driver\Types.cpp(44): fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'msc1.cpp', line 1518)

Added: 
    

Modified: 
    clang/lib/Driver/Types.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/Types.cpp b/clang/lib/Driver/Types.cpp
index e330352c2368..8e1236bd08ec 100644
--- a/clang/lib/Driver/Types.cpp
+++ b/clang/lib/Driver/Types.cpp
@@ -28,7 +28,7 @@ struct TypeInfo {
     unsigned Bits = 0;
 
   public:
-    constexpr PhasesBitSet(const std::initializer_list<phases::ID> &Phases) {
+    constexpr PhasesBitSet(std::initializer_list<phases::ID> Phases) {
       for (auto Id : Phases)
         Bits |= 1 << Id;
     }


        


More information about the cfe-commits mailing list