[llvm-dev] LLVM-8.0 | Requesting Help : Function->getName() returns empty string

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 23 03:42:44 PDT 2019


Hi Manoj,

> Here it prints an empty string and also the executionEngine->runFunction() gives error : Assertion failed! Expression: GV->hasName() && "Global must have name."

Have you checked that it's definitely the same pointer? Obviously the
code you posted isn't real but it does show funcHandle being passed as
an int rather than an intptr, which could easily truncate the value.

Cheers.

Tim.


More information about the llvm-dev mailing list