API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interf...
[oota-llvm.git] / examples / ModuleMaker / ModuleMaker.cpp
index 40d2fa99f4f0a2025e80d5b30232274e289d0b1c..154e24065c0a82cef9b0a5fadb932d97f0e6671b 100644 (file)
@@ -43,7 +43,7 @@ int main() {
   Value *Three = ConstantInt::get(Type::Int32Ty, 3);
 
   // Create the add instruction... does not insert...
-  Instruction *Add = BinaryOperator::create(Instruction::Add, Two, Three,
+  Instruction *Add = BinaryOperator::Create(Instruction::Add, Two, Three,
                                             "addresult");
 
   // explicitly insert it into the basic block...