Skip to content

Commit a242885

Browse files
committed
Use cast rather than static_cast
1 parent 3be22b6 commit a242885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/CodeGenPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ static bool SinkCast(CastInst *CI) {
14311431
if (!InsertedCast) {
14321432
BasicBlock::iterator InsertPt = UserBB->getFirstInsertionPt();
14331433
assert(InsertPt != UserBB->end());
1434-
InsertedCast = static_cast<CastInst *>(CI->clone());
1434+
InsertedCast = cast<CastInst>(CI->clone());
14351435
InsertedCast->insertBefore(*UserBB, InsertPt);
14361436
}
14371437

0 commit comments

Comments
 (0)