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 d0d3f15 commit c068f8bCopy full SHA for c068f8b
llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
@@ -117,7 +117,7 @@ struct StoreToLoadForwardingCandidate {
117
if (std::abs(StrideLoad) != 1)
118
return false;
119
120
- unsigned TypeByteSize = DL.getTypeAllocSize(const_cast<Type *>(LoadType));
+ unsigned TypeByteSize = DL.getTypeAllocSize(LoadType);
121
122
auto *LoadPtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(LoadPtr));
123
auto *StorePtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(StorePtr));
0 commit comments