From b7b53e9a249ba316fea350915c784abff6082cdd Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 17 May 2011 20:00:02 +0000 Subject: [PATCH] Preserve line number information. llvm-svn: 131482 --- lib/Transforms/Scalar/GVN.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index cbb030e5606..1da5238bbb6 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -2102,6 +2102,7 @@ bool GVN::performPRE(Function &F) { PREInstr->insertBefore(PREPred->getTerminator()); PREInstr->setName(CurInst->getName() + ".pre"); + PREInstr->setDebugLoc(CurInst->getDebugLoc()); predMap[PREPred] = PREInstr; VN.add(PREInstr, ValNo); ++NumGVNPRE;