[opaque pointer type] Avoid using PointerType::getElementType for a few cases of...
[oota-llvm.git] / lib / AsmParser / LLParser.cpp
index be098c1b128752f816dab61daa05265a028946f7..2e8008b96e7bdd17ce928e3318ba8e82bf9fca4a 100644 (file)
@@ -5224,7 +5224,7 @@ bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS,
   // Finish off the Attribute and check them
   AttributeSet PAL = AttributeSet::get(Context, Attrs);
 
-  CallInst *CI = CallInst::Create(Callee, Args);
+  CallInst *CI = CallInst::Create(Ty, Callee, Args);
   CI->setTailCallKind(TCK);
   CI->setCallingConv(CC);
   CI->setAttributes(PAL);