From da6de52435d05e73e3691006e9f8d78e0102343e Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Sat, 26 Jan 2013 21:55:19 +0000 Subject: IRBuilder: Remove redundant check around SetInstDebugLocation call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173591 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/IRBuilder.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index e2ec481d07..a137bbf7fa 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/include/llvm/IR/IRBuilder.h @@ -428,8 +428,7 @@ public: template 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; } -- cgit v1.2.3