Add a const and munge some comments

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Kleckner
2014-08-29 21:42:21 +00:00
parent 9436574d1b
commit 039f6c6ded
2 changed files with 6 additions and 4 deletions

View File

@@ -148,7 +148,7 @@ void FunctionLoweringInfo::set(const Function &fn, MachineFunction &mf,
// If we have a musttail call in a variadic funciton, we need to ensure we
// forward implicit register parameters.
if (auto *CI = dyn_cast<CallInst>(I)) {
if (const auto *CI = dyn_cast<CallInst>(I)) {
if (CI->isMustTailCall() && Fn->isVarArg())
MF->getFrameInfo()->setHasMustTailInVarArgFunc(true);
}