summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-02 14:42:38 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-02 14:42:38 +0000
commit97725707f488d3f00f94d4c4f2d9e193c302b23c (patch)
treeb1626a2d0246fa994e2f8159e45a2cdae1e950ba
parent254b8461ac841a6a32c2c03711d0a4b1681029cb (diff)
downloadbcm5719-llvm-97725707f488d3f00f94d4c4f2d9e193c302b23c.tar.gz
bcm5719-llvm-97725707f488d3f00f94d4c4f2d9e193c302b23c.zip
Fix uninitialized variable warning. NFCI.
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 0c30ea0108c..1b02f96cf27 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -9256,7 +9256,7 @@ bool SelectionDAG::areNonVolatileConsecutiveLoads(LoadSDNode *LD,
/// it cannot be inferred.
unsigned SelectionDAG::InferPtrAlignment(SDValue Ptr) const {
// If this is a GlobalAddress + cst, return the alignment.
- const GlobalValue *GV;
+ const GlobalValue *GV = nullptr;
int64_t GVOffset = 0;
if (TLI->isGAPlusOffset(Ptr.getNode(), GV, GVOffset)) {
unsigned IdxWidth = getDataLayout().getIndexTypeSizeInBits(GV->getType());
OpenPOWER on IntegriCloud