From c6485a32ba8231733bd7495596e826cbed75d79a Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 18 May 2019 12:17:15 +0000 Subject: [PATCH] ScalarExprEmitter::EmitCompoundAssign - fix uninitialized variable warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361098 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprScalar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.40.0