LLVM 22.0.0git
WinCFGuard.cpp File Reference

Go to the source code of this file.

Functions

static bool isPossibleIndirectCallTarget (const Function *F)
 Returns true if this function's address is escaped in a way that might make it an indirect call target.

Function Documentation

◆ isPossibleIndirectCallTarget()

bool isPossibleIndirectCallTarget ( const Function * F)
static

Returns true if this function's address is escaped in a way that might make it an indirect call target.

Function::hasAddressTaken gives different results when a function is called directly with a function prototype mismatch, which requires a cast.

Definition at line 45 of file WinCFGuard.cpp.

References Call, llvm::dyn_cast(), F, G, llvm::isa(), Users, and llvm::Value::uses().

Referenced by llvm::WinCFGuard::endModule().