diff options
Diffstat (limited to 'lib/CodeGen/ShadowStackCollector.cpp')
-rw-r--r-- | lib/CodeGen/ShadowStackCollector.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/ShadowStackCollector.cpp b/lib/CodeGen/ShadowStackCollector.cpp index d41e83c712..121dfc2407 100644 --- a/lib/CodeGen/ShadowStackCollector.cpp +++ b/lib/CodeGen/ShadowStackCollector.cpp @@ -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 |