[llvm-commits] [llvm] r173591 - IRBuilder: Remove redundant check around SetInstDebugLocation call.

David Blaikie dblaikie at gmail.com
Sat Jan 26 13:55:20 PST 2013


Author: dblaikie
Date: Sat Jan 26 15:55:19 2013
New Revision: 173591

URL: http://llvm.org/viewvc/llvm-project?rev=173591&view=rev
Log:
IRBuilder: Remove redundant check around SetInstDebugLocation call.

Modified:
    llvm/trunk/include/llvm/IR/IRBuilder.h

Modified: llvm/trunk/include/llvm/IR/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IRBuilder.h?rev=173591&r1=173590&r2=173591&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/IR/IRBuilder.h Sat Jan 26 15:55:19 2013
@@ -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;
   }
 





More information about the llvm-commits mailing list