ScalarExprEmitter::EmitCompoundAssign - fix uninitialized variable warning. NFCI.

llvm-svn: 361098
This commit is contained in:
Simon Pilgrim 2019-05-18 12:17:15 +00:00
parent 3e95568dcf
commit 30aa42e145
1 changed files with 1 additions and 1 deletions

View File

@ -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.