File tree 1 file changed +2
-2
lines changed
llvm/lib/Transforms/Instrumentation 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1715,7 +1715,7 @@ Value *NumericalStabilitySanitizer::createShadowValueWithOperandsAvailable(
1715
1715
Map.getShadow (BinOp->getOperand (1 )));
1716
1716
1717
1717
if (isa<UIToFPInst>(&Inst) || isa<SIToFPInst>(&Inst)) {
1718
- auto *Cast = dyn_cast <CastInst>(&Inst);
1718
+ auto *Cast = cast <CastInst>(&Inst);
1719
1719
return Builder.CreateCast (Cast->getOpcode (), Cast->getOperand (0 ),
1720
1720
ExtendedVT);
1721
1721
}
@@ -2168,7 +2168,7 @@ bool NumericalStabilitySanitizer::sanitizeFunction(
2168
2168
2169
2169
// The last pass populates shadow phis with shadow values.
2170
2170
for (PHINode *Phi : OriginalPhis) {
2171
- PHINode *ShadowPhi = dyn_cast <PHINode>(ValueToShadow.getShadow (Phi));
2171
+ PHINode *ShadowPhi = cast <PHINode>(ValueToShadow.getShadow (Phi));
2172
2172
for (unsigned I : seq (Phi->getNumOperands ())) {
2173
2173
Value *V = Phi->getOperand (I);
2174
2174
Value *Shadow = ValueToShadow.getShadow (V);
You can’t perform that action at this time.
0 commit comments