Sfoglia il codice sorgente

[mir] Fix uninitialized variable in r349035 noticed by clang-atom-d525-fedora-rel and 3 other bots



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349043 91177308-0d34-0410-b5e6-96231b3b80d8
Daniel Sanders 6 anni fa
parent
commit
a20dcc7643
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/CodeGen/MIRParser/MIParser.cpp

+ 1 - 1
lib/CodeGen/MIRParser/MIParser.cpp

@@ -1701,7 +1701,7 @@ bool MIParser::parseDILocation(MDNode *&Loc) {
   unsigned Column = 0;
   MDNode *Scope = nullptr;
   MDNode *InlinedAt = nullptr;
-  bool ImplicitCode;
+  bool ImplicitCode = false;
 
   if (expectAndConsume(MIToken::lparen))
     return true;