@@ -2975,7 +2975,7 @@ bool LLParser::parseType(Type *&Result, const Twine &Msg, bool AllowVoid) {
2975
2975
return tokError (" pointers to void are invalid - use i8* instead" );
2976
2976
if (!PointerType::isValidElementType (Result))
2977
2977
return tokError (" pointer to this type is invalid" );
2978
- Result = PointerType::getUnqual (Result );
2978
+ Result = PointerType::getUnqual (Context );
2979
2979
Lex.Lex ();
2980
2980
break ;
2981
2981
@@ -2992,7 +2992,7 @@ bool LLParser::parseType(Type *&Result, const Twine &Msg, bool AllowVoid) {
2992
2992
parseToken (lltok::star, " expected '*' in address space" ))
2993
2993
return true ;
2994
2994
2995
- Result = PointerType::get (Result , AddrSpace);
2995
+ Result = PointerType::get (Context , AddrSpace);
2996
2996
break ;
2997
2997
}
2998
2998
@@ -6515,7 +6515,7 @@ bool LLParser::parseFunctionHeader(Function *&Fn, bool IsDefine,
6515
6515
return error (RetTypeLoc, " functions with 'sret' argument must return void" );
6516
6516
6517
6517
FunctionType *FT = FunctionType::get (RetType, ParamTypeList, IsVarArg);
6518
- PointerType *PFT = PointerType::get (FT , AddrSpace);
6518
+ PointerType *PFT = PointerType::get (Context , AddrSpace);
6519
6519
6520
6520
Fn = nullptr ;
6521
6521
GlobalValue *FwdFn = nullptr ;
@@ -7410,7 +7410,7 @@ bool LLParser::parseInvoke(Instruction *&Inst, PerFunctionState &PFS) {
7410
7410
7411
7411
// Look up the callee.
7412
7412
Value *Callee;
7413
- if (convertValIDToValue (PointerType::get (Ty , InvokeAddrSpace), CalleeID,
7413
+ if (convertValIDToValue (PointerType::get (Context , InvokeAddrSpace), CalleeID,
7414
7414
Callee, &PFS))
7415
7415
return true ;
7416
7416
@@ -7724,7 +7724,8 @@ bool LLParser::parseCallBr(Instruction *&Inst, PerFunctionState &PFS) {
7724
7724
7725
7725
// Look up the callee.
7726
7726
Value *Callee;
7727
- if (convertValIDToValue (PointerType::getUnqual (Ty), CalleeID, Callee, &PFS))
7727
+ if (convertValIDToValue (PointerType::getUnqual (Context), CalleeID, Callee,
7728
+ &PFS))
7728
7729
return true ;
7729
7730
7730
7731
// Set up the Attribute for the function.
@@ -8115,8 +8116,8 @@ bool LLParser::parseCall(Instruction *&Inst, PerFunctionState &PFS,
8115
8116
8116
8117
// Look up the callee.
8117
8118
Value *Callee;
8118
- if (convertValIDToValue (PointerType::get (Ty , CallAddrSpace), CalleeID, Callee ,
8119
- &PFS))
8119
+ if (convertValIDToValue (PointerType::get (Context , CallAddrSpace), CalleeID,
8120
+ Callee, &PFS))
8120
8121
return true ;
8121
8122
8122
8123
// Set up the Attribute for the function.
0 commit comments