Fix uninitialized variable warning. NFCI.

This commit is contained in:
Simon Pilgrim 2019-11-02 14:42:38 +00:00
parent 254b8461ac
commit 97725707f4
1 changed files with 1 additions and 1 deletions

View File

@ -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());