ΒΆbool verifyFunction(
    const llvm::Function& F,
    llvm::raw_ostream* OS = nullptr)

Description

Check a function for errors, useful for use when debugging a pass. If there are no errors, the function returns false. If an error is found, a message describing the error is written to OS (if non-null) and true is returned.

Declared at: llvm/include/llvm/IR/Verifier.h:88

Parameters

const llvm::Function& F
llvm::raw_ostream* OS = nullptr