[llvm-commits] [llvm] r86290 - /llvm/trunk/lib/VMCore/Instructions.cpp
Duncan Sands
baldrick at free.fr
Sun Nov 8 08:57:00 PST 2009
Hi Victor,
> - Constant *FreeFunc = M->getOrInsertFunction("free", VoidTy, IntPtrTy, NULL);
> -
> + Function *FreeFunc = cast<Function>(M->getOrInsertFunction("free", VoidTy,
> + IntPtrTy, NULL));
if there was already a function called "free" in the module but with a different
prototype, then I think you may get a bitcast here; the cast would then assert.
Ciao,
Duncan.
More information about the llvm-commits
mailing list