]> granicus.if.org Git - llvm/commitdiff
Fix uninitialized variable warning. NFCI
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 3 Oct 2019 11:21:46 +0000 (11:21 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 3 Oct 2019 11:21:46 +0000 (11:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373582 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmParser/ARMAsmParser.cpp

index dd2d4ec118aa8a96cca82839f24b752a1aef5d2f..4d2c9dad7099ea2f8086e261c75dc1597523c89f 100644 (file)
@@ -11339,7 +11339,7 @@ bool ARMAsmParser::parseDirectiveUnwindRaw(SMLoc L) {
   SmallVector<uint8_t, 16> Opcodes;
 
   auto parseOne = [&]() -> bool {
-    const MCExpr *OE;
+    const MCExpr *OE = nullptr;
     SMLoc OpcodeLoc = getLexer().getLoc();
     if (check(getLexer().is(AsmToken::EndOfStatement) ||
                   Parser.parseExpression(OE),