summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-05-18 12:17:15 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-05-18 12:17:15 +0000
commit30aa42e1451f7d69fd6fb08659e8ab3704a1a570 (patch)
treee090b5893480ef31bcaef85bc765e921ece3e7ef /clang/lib/CodeGen/CGExprScalar.cpp
parent3e95568dcf81b5ee23faf6f1ebca0503a5a3ef53 (diff)
downloadbcm5719-llvm-30aa42e1451f7d69fd6fb08659e8ab3704a1a570.tar.gz
bcm5719-llvm-30aa42e1451f7d69fd6fb08659e8ab3704a1a570.zip
ScalarExprEmitter::EmitCompoundAssign - fix uninitialized variable warning. NFCI.
llvm-svn: 361098
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 62c4da0383c..267402dbef4 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud