[LLVMdev] Valgrind Help Needed
Bill Wendling
isanbard at gmail.com
Thu Sep 20 02:52:42 PDT 2007
On Sep 19, 2007, at 5:41 PM, Devang Patel wrote:
> On Sep 19, 2007, at 4:48 PM, Bill Wendling wrote:
>
> In llvm-backend.cpp :
>
> 1086 if (GV->getName() != Name) {
> 1087 Function *F = TheModule->getFunction(Name);
> 1088 assert(F && F->isDeclaration() && "A function turned
> into a global?");
> 1089
> 1090 // Replace any uses of "F" with uses of GV.
> 1091 Value *FInNewType = ConstantExpr::getBitCast(GV, F-
> >getType());
>
>
> (gdb) p Name
> $3 = 0x41819430 "\001L_OBJC_PROTOCOL_$_CPTransferThreadObserving"
>
> However TheModule->getFunction(Name) returns NULL and you get ICE
> at F->getType() #1091. I'll let you investigate this further ... :)
>
How were you able to get gdb to work with this?!
-bw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070920/71532f23/attachment.html>
More information about the llvm-dev
mailing list