diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index 94592800fe4..3b06fd3e3b3 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -73,6 +73,7 @@ public: void SetInsertPoint(BasicBlock *TheBB) { BB = TheBB; InsertPt = BB->end(); + CurDbgLocation = DebugLoc(); } /// SetInsertPoint - This specifies that created instructions should be