From: Simon Pilgrim Date: Sat, 18 May 2019 12:17:15 +0000 (+0000) Subject: ScalarExprEmitter::EmitCompoundAssign - fix uninitialized variable warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6485a32ba8231733bd7495596e826cbed75d79a;p=clang ScalarExprEmitter::EmitCompoundAssign - fix uninitialized variable warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361098 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 62c4da0383..267402dbef 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -2984,7 +2984,7 @@ LValue ScalarExprEmitter::EmitCompoundAssignLValue( Value *ScalarExprEmitter::EmitCompoundAssign(const CompoundAssignOperator *E, Value *(ScalarExprEmitter::*Func)(const BinOpInfo &)) { bool Ignore = TestAndClearIgnoreResultAssign(); - Value *RHS; + Value *RHS = nullptr; LValue LHS = EmitCompoundAssignLValue(E, Func, RHS); // If the result is clearly ignored, return now.