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

lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp

index 7af0de7f647e028efd01daf5eab8f09b11cbb0ba..4fb409f020d91a8b73cf604d8b5dac5c2b84a13f 100644 (file)
@@ -5276,7 +5276,7 @@ bool AArch64AsmParser::parseDirectiveInst(SMLoc Loc) {
 
   auto parseOp = [&]() -> bool {
     SMLoc L = getLoc();
-    const MCExpr *Expr;
+    const MCExpr *Expr = nullptr;
     if (check(getParser().parseExpression(Expr), L, "expected expression"))
       return true;
     const MCConstantExpr *Value = dyn_cast_or_null<MCConstantExpr>(Expr);