r366062 - Fix uninitialized variable analyzer warning. NFCI.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 15 06:00:43 PDT 2019


Author: rksimon
Date: Mon Jul 15 06:00:43 2019
New Revision: 366062

URL: http://llvm.org/viewvc/llvm-project?rev=366062&view=rev
Log:
Fix uninitialized variable analyzer warning. NFCI.

Modified:
    cfe/trunk/lib/AST/ASTImporter.cpp

Modified: cfe/trunk/lib/AST/ASTImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTImporter.cpp?rev=366062&r1=366061&r2=366062&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTImporter.cpp (original)
+++ cfe/trunk/lib/AST/ASTImporter.cpp Mon Jul 15 06:00:43 2019
@@ -8075,7 +8075,7 @@ ASTImporter::Import(NestedNameSpecifier
   if (!FromNNS)
     return nullptr;
 
-  NestedNameSpecifier *Prefix;
+  NestedNameSpecifier *Prefix = nullptr;
   if (Error Err = importInto(Prefix, FromNNS->getPrefix()))
     return std::move(Err);
 




More information about the cfe-commits mailing list