summaryrefslogtreecommitdiff
path: root/examples/ModuleMaker/ModuleMaker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ModuleMaker/ModuleMaker.cpp')
-rw-r--r--examples/ModuleMaker/ModuleMaker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ModuleMaker/ModuleMaker.cpp b/examples/ModuleMaker/ModuleMaker.cpp
index 1baa8c98ef..fc487af056 100644
--- a/examples/ModuleMaker/ModuleMaker.cpp
+++ b/examples/ModuleMaker/ModuleMaker.cpp
@@ -31,7 +31,7 @@ int main() {
// Create the main function: first create the type 'int ()'
FunctionType *FT =
- Context.getFunctionType(Type::Int32Ty, /*not vararg*/false);
+ FunctionType::get(Type::Int32Ty, /*not vararg*/false);
// By passing a module as the last parameter to the Function constructor,
// it automatically gets appended to the Module.