Final step of instcombine debuginfo; switch a couple more places over to InsertNewInstWith, and use setDebugLoc for the cases which can't be easily handled by the automated mechanisms.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eli Friedman
2011-05-27 00:19:40 +00:00
parent b29c1d731a
commit a311c34d2a
5 changed files with 34 additions and 16 deletions

View File

@ -211,7 +211,7 @@ Value *InstCombiner::EvaluateInDifferentType(Value *V, const Type *Ty,
}
Res->takeName(I);
return InsertNewInstBefore(Res, *I);
return InsertNewInstWith(Res, *I);
}