summaryrefslogtreecommitdiffstats
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
commit18a7776b9340f56f441e8390b4807dcb1e746464 (patch)
tree811fca3a836026bdcf169dedf1c49c23ee1715eb
parent183436e5b65691de78a73facf9cfff5c334b4ded (diff)
downloadbcm5719-llvm-18a7776b9340f56f441e8390b4807dcb1e746464.tar.gz
bcm5719-llvm-18a7776b9340f56f441e8390b4807dcb1e746464.zip
IRBuilder: Remove redundant check around SetInstDebugLocation call.
llvm-svn: 173591
-rw-r--r--llvm/include/llvm/IR/IRBuilder.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h
index e2ec481d070..a137bbf7fa3 100644
--- a/llvm/include/llvm/IR/IRBuilder.h
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud