[clang] a5704f9 - [Sema] Initialize IsSurrogate

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 7 12:25:08 PST 2020


Author: Rafael Ávila de Espíndola
Date: 2020-03-07T12:24:35-08:00
New Revision: a5704f92b835d1810d83a223f70dfe6c92a34c03

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

LOG: [Sema] Initialize IsSurrogate

This fixes https://bugs.llvm.org/show_bug.cgi?id=45096

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

Added: 
    

Modified: 
    clang/include/clang/Sema/Overload.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Sema/Overload.h b/clang/include/clang/Sema/Overload.h
index f1a8b98e5efd..6944b0b5756e 100644
--- a/clang/include/clang/Sema/Overload.h
+++ b/clang/include/clang/Sema/Overload.h
@@ -908,7 +908,7 @@ class Sema;
   private:
     friend class OverloadCandidateSet;
     OverloadCandidate()
-        : IsADLCandidate(CallExpr::NotADL), RewriteKind(CRK_None) {}
+        : IsSurrogate(false), IsADLCandidate(CallExpr::NotADL), RewriteKind(CRK_None) {}
   };
 
   /// OverloadCandidateSet - A set of overload candidates, used in C++


        


More information about the cfe-commits mailing list