Skip to content

Commit 1d00ba7

Browse files
committed
Remove now-unnecessary stripPointerCasts.
1 parent de79c48 commit 1d00ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3670,7 +3670,7 @@ Instruction *InstCombinerImpl::foldPtrAuthConstantCallee(CallBase &Call) {
36703670
if (!CPA)
36713671
return nullptr;
36723672

3673-
auto *CalleeF = dyn_cast<Function>(CPA->getPointer()->stripPointerCasts());
3673+
auto *CalleeF = dyn_cast<Function>(CPA->getPointer());
36743674
// If the ptrauth constant isn't based on a function pointer, bail out.
36753675
if (!CalleeF)
36763676
return nullptr;

0 commit comments

Comments
 (0)