[cfe-commits] r149627 - /cfe/trunk/lib/Sema/SemaOverload.cpp

Benjamin Kramer benny.kra at googlemail.com
Thu Feb 2 11:35:30 PST 2012


Author: d0k
Date: Thu Feb  2 13:35:29 2012
New Revision: 149627

URL: http://llvm.org/viewvc/llvm-project?rev=149627&view=rev
Log:
Initialize the user defined conversion function to null if this is an aggregate initialization from an initializer list.

Found by valgrind.

Modified:
    cfe/trunk/lib/Sema/SemaOverload.cpp

Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=149627&r1=149626&r2=149627&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Thu Feb  2 13:35:29 2012
@@ -4185,6 +4185,7 @@
       Result.UserDefined.After.setAsIdentityConversion();
       Result.UserDefined.After.setFromType(ToType);
       Result.UserDefined.After.setAllToTypes(ToType);
+      Result.UserDefined.ConversionFunction = 0;
     }
     return Result;
   }





More information about the cfe-commits mailing list