[llvm-commits] [llvm] r132170 - /llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp
Eli Friedman
eli.friedman at gmail.com
Thu May 26 18:00:36 PDT 2011
Author: efriedma
Date: Thu May 26 20:00:36 2011
New Revision: 132170
URL: http://llvm.org/viewvc/llvm-project?rev=132170&view=rev
Log:
One more debug line number miss in instcombine (although the code in question isn't actually in instcombine).
Modified:
llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp
Modified: llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp?rev=132170&r1=132169&r2=132170&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp Thu May 26 20:00:36 2011
@@ -362,12 +362,8 @@
Function *Callee = CI->getCalledFunction();
StringRef Name = Callee->getName();
const FunctionType *FT = Callee->getFunctionType();
- BasicBlock *BB = CI->getParent();
LLVMContext &Context = CI->getParent()->getContext();
- IRBuilder<> B(Context);
-
- // Set the builder to the instruction after the call.
- B.SetInsertPoint(BB, CI);
+ IRBuilder<> B(CI);
if (Name == "__memcpy_chk") {
// Check if this has the right signature.
More information about the llvm-commits
mailing list