diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-01-26 21:55:19 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-01-26 21:55:19 +0000 |
commit | da6de52435d05e73e3691006e9f8d78e0102343e (patch) | |
tree | daf1df4d73aea913c2a2cea8528b90b095205d1d /include | |
parent | ec5c3c2bd37828e9fbd913f5ac7b7f75711ddd59 (diff) | |
download | external_llvm-da6de52435d05e73e3691006e9f8d78e0102343e.zip external_llvm-da6de52435d05e73e3691006e9f8d78e0102343e.tar.gz external_llvm-da6de52435d05e73e3691006e9f8d78e0102343e.tar.bz2 |
IRBuilder: Remove redundant check around SetInstDebugLocation call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/IRBuilder.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index e2ec481..a137bbf 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; } |