forked from OSchip/llvm-project
Fix uninitialized variable warning. NFCI.
This commit is contained in:
parent
254b8461ac
commit
97725707f4
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue