From: David Blaikie Date: Sat, 26 Jan 2013 21:55:19 +0000 (+0000) Subject: IRBuilder: Remove redundant check around SetInstDebugLocation call. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=da6de52435d05e73e3691006e9f8d78e0102343e;p=oota-llvm.git IRBuilder: Remove redundant check around SetInstDebugLocation call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173591 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index e2ec481d070..a137bbf7fa3 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; }