aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-01-26 21:55:19 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-01-26 21:55:19 +0000
commitda6de52435d05e73e3691006e9f8d78e0102343e (patch)
treedaf1df4d73aea913c2a2cea8528b90b095205d1d
parentec5c3c2bd37828e9fbd913f5ac7b7f75711ddd59 (diff)
IRBuilder: Remove redundant check around SetInstDebugLocation call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173591 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/IR/IRBuilder.h3
1 files changed, 1 insertions, 2 deletions
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<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;
}