forked from OSchip/llvm-project
[NVPTX] NVPTXLowerAggrCopies - Silence static analyzer dyn_cast<StoreInst> null dereference warning. NFCI.
llvm-svn: 372504
This commit is contained in:
parent
8379590770
commit
a75b947014
|
@ -103,7 +103,7 @@ bool NVPTXLowerAggrCopies::runOnFunction(Function &F) {
|
||||||
// Do the transformation of an aggr load/copy/set to a loop
|
// Do the transformation of an aggr load/copy/set to a loop
|
||||||
//
|
//
|
||||||
for (LoadInst *LI : AggrLoads) {
|
for (LoadInst *LI : AggrLoads) {
|
||||||
StoreInst *SI = dyn_cast<StoreInst>(*LI->user_begin());
|
auto *SI = cast<StoreInst>(*LI->user_begin());
|
||||||
Value *SrcAddr = LI->getOperand(0);
|
Value *SrcAddr = LI->getOperand(0);
|
||||||
Value *DstAddr = SI->getOperand(1);
|
Value *DstAddr = SI->getOperand(1);
|
||||||
unsigned NumLoads = DL.getTypeStoreSize(LI->getType());
|
unsigned NumLoads = DL.getTypeStoreSize(LI->getType());
|
||||||
|
|
Loading…
Reference in New Issue