diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-02 14:42:38 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-02 14:42:38 +0000 |
commit | 97725707f488d3f00f94d4c4f2d9e193c302b23c (patch) | |
tree | b1626a2d0246fa994e2f8159e45a2cdae1e950ba /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 254b8461ac841a6a32c2c03711d0a4b1681029cb (diff) | |
download | bcm5719-llvm-97725707f488d3f00f94d4c4f2d9e193c302b23c.tar.gz bcm5719-llvm-97725707f488d3f00f94d4c4f2d9e193c302b23c.zip |
Fix uninitialized variable warning. NFCI.
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
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()); |