[LLVMbugs] [Bug 18623] New: The call to 'free' created by CallInst::CreateFree might not end up in any basic block even though a insertion point was given
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jan 26 15:57:48 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18623
Bug ID: 18623
Summary: The call to 'free' created by CallInst::CreateFree
might not end up in any basic block even though a
insertion point was given
Product: new-bugs
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: doerfert at cs.uni-saarland.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
If the static function createFree in IR/Instructions.cpp (apprx. line 481) is
called with a basic block in which the call to free should be placed, it might
not end up there.
The code which reads (git: 79e3fb53d618d12e239275ef055200bbd6f8253e):
if (Source->getType() != IntPtrTy)
PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd);
Result = CallInst::Create(FreeFunc, PtrCast, "");
should be changed to:
if (Source->getType() != IntPtrTy)
PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd);
Result = CallInst::Create(FreeFunc, PtrCast, "", InsertAtEnd);
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140126/4b42d2ec/attachment.html>
More information about the llvm-bugs
mailing list