llvm.org GIT mirror llvm / da6de52
IRBuilder: Remove redundant check around SetInstDebugLocation call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173591 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 7 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
427427 template
428428 InstTy *Insert(InstTy *I, const Twine &Name = "") const {
429429 this->InsertHelper(I, Name, BB, InsertPt);
430 if (!getCurrentDebugLocation().isUnknown())
431 this->SetInstDebugLocation(I);
430 this->SetInstDebugLocation(I);
432431 return I;
433432 }
434433