IRBuilder: Remove redundant check around SetInstDebugLocation call.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173591 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2013-01-26 21:55:19 +00:00
parent ec5c3c2bd3
commit da6de52435

View File

@ -428,8 +428,7 @@ public:
template<typename InstTy>
InstTy *Insert(InstTy *I, const Twine &Name = "") const {
this->InsertHelper(I, Name, BB, InsertPt);
if (!getCurrentDebugLocation().isUnknown())
this->SetInstDebugLocation(I);
this->SetInstDebugLocation(I);
return I;
}