mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Make StripPointerCast a common function (should we mak it method of Value instead?)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -325,8 +325,7 @@ void ShadowStackCollector::CollectRoots(Function &F) {
|
||||
if (Function *F = CI->getCalledFunction())
|
||||
if (F->getIntrinsicID() == Intrinsic::gcroot) {
|
||||
std::pair<CallInst*,AllocaInst*> Pair = std::make_pair(
|
||||
CI, cast<AllocaInst>(
|
||||
IntrinsicInst::StripPointerCasts(CI->getOperand(1))));
|
||||
CI, cast<AllocaInst>(StripPointerCasts(CI->getOperand(1))));
|
||||
if (IsNullValue(CI->getOperand(2)))
|
||||
Roots.push_back(Pair);
|
||||
else
|
||||
|
Reference in New Issue
Block a user