add some casts to support a change in the getOrInsertFunction interface
llvm-svn: 32984
This commit is contained in:
@@ -38,8 +38,9 @@ using namespace llvm;
|
||||
static Function *CreateFibFunction(Module *M) {
|
||||
// Create the fib function and insert it into module M. This function is said
|
||||
// to return an int and take an int parameter.
|
||||
Function *FibF = M->getOrInsertFunction("fib", Type::Int32Ty, Type::Int32Ty,
|
||||
(Type *)0);
|
||||
Function *FibF =
|
||||
cast<Function>(M->getOrInsertFunction("fib", Type::Int32Ty, Type::Int32Ty,
|
||||
(Type *)0));
|
||||
|
||||
// Add a basic block to the function.
|
||||
BasicBlock *BB = new BasicBlock("EntryBlock", FibF);
|
||||
|
||||
Reference in New Issue
Block a user