We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc9af0f commit aeadde4Copy full SHA for aeadde4
llvm/lib/Transforms/IPO/GlobalOpt.cpp
@@ -2169,7 +2169,7 @@ static bool tryWidenGlobalArraysUsedByMemcpy(
2169
2170
unsigned NumBytesToCopy = BytesToCopyOp->getZExtValue();
2171
2172
- auto *Alloca = dyn_cast<AllocaInst>(CI->getArgOperand(0));
+ auto *Alloca = cast<AllocaInst>(CI->getArgOperand(0));
2173
uint64_t DZSize = Alloca->getAllocatedType()->getArrayNumElements();
2174
uint64_t SZSize = SourceDataArray->getType()->getNumElements();
2175
unsigned ElementByteWidth = SourceDataArray->getElementByteSize();
0 commit comments