]> granicus.if.org Git - clang/commitdiff
ScalarExprEmitter::EmitCompoundAssign - fix uninitialized variable warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 18 May 2019 12:17:15 +0000 (12:17 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 18 May 2019 12:17:15 +0000 (12:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361098 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprScalar.cpp

index 62c4da0383cc12223f1666a39c327e2d02ff301e..267402dbef4bddcef2c9899440b11809e020f0e7 100644 (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.