diff options
Diffstat (limited to 'lib/AsmParser/ParserInternals.h')
-rw-r--r-- | lib/AsmParser/ParserInternals.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/AsmParser/ParserInternals.h b/lib/AsmParser/ParserInternals.h index b05bb0ddac..750833fae8 100644 --- a/lib/AsmParser/ParserInternals.h +++ b/lib/AsmParser/ParserInternals.h @@ -184,8 +184,8 @@ typedef PlaceholderValue<BBPlaceHolderHelper> BBPlaceHolder; static inline ValID &getValIDFromPlaceHolder(const Value *Val) { const Type *Ty = Val->getType(); if (isa<PointerType>(Ty) && - isa<MethodType>(cast<PointerType>(Ty)->getValueType())) - Ty = cast<PointerType>(Ty)->getValueType(); + isa<MethodType>(cast<PointerType>(Ty)->getElementType())) + Ty = cast<PointerType>(Ty)->getElementType(); switch (Ty->getPrimitiveID()) { case Type::LabelTyID: return ((BBPlaceHolder*)Val)->getDef(); @@ -196,8 +196,8 @@ static inline ValID &getValIDFromPlaceHolder(const Value *Val) { static inline int getLineNumFromPlaceHolder(const Value *Val) { const Type *Ty = Val->getType(); if (isa<PointerType>(Ty) && - isa<MethodType>(cast<PointerType>(Ty)->getValueType())) - Ty = cast<PointerType>(Ty)->getValueType(); + isa<MethodType>(cast<PointerType>(Ty)->getElementType())) + Ty = cast<PointerType>(Ty)->getElementType(); switch (Ty->getPrimitiveID()) { case Type::LabelTyID: return ((BBPlaceHolder*)Val)->getLineNum(); |