mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
efbf178082
commit
dcb40a3c1c
@ -2078,8 +2078,7 @@ bool LLParser::ParseValID(ValID &ID) {
|
|||||||
bool InBounds = false;
|
bool InBounds = false;
|
||||||
Lex.Lex();
|
Lex.Lex();
|
||||||
if (Opc == Instruction::GetElementPtr)
|
if (Opc == Instruction::GetElementPtr)
|
||||||
if (EatIfPresent(lltok::kw_inbounds))
|
InBounds = EatIfPresent(lltok::kw_inbounds);
|
||||||
InBounds = true;
|
|
||||||
if (ParseToken(lltok::lparen, "expected '(' in constantexpr") ||
|
if (ParseToken(lltok::lparen, "expected '(' in constantexpr") ||
|
||||||
ParseGlobalValueVector(Elts) ||
|
ParseGlobalValueVector(Elts) ||
|
||||||
ParseToken(lltok::rparen, "expected ')' in constantexpr"))
|
ParseToken(lltok::rparen, "expected ')' in constantexpr"))
|
||||||
@ -3413,10 +3412,8 @@ bool LLParser::ParseGetResult(Instruction *&Inst, PerFunctionState &PFS) {
|
|||||||
/// ::= 'getelementptr' 'inbounds'? TypeAndValue (',' TypeAndValue)*
|
/// ::= 'getelementptr' 'inbounds'? TypeAndValue (',' TypeAndValue)*
|
||||||
bool LLParser::ParseGetElementPtr(Instruction *&Inst, PerFunctionState &PFS) {
|
bool LLParser::ParseGetElementPtr(Instruction *&Inst, PerFunctionState &PFS) {
|
||||||
Value *Ptr, *Val; LocTy Loc, EltLoc;
|
Value *Ptr, *Val; LocTy Loc, EltLoc;
|
||||||
bool InBounds = false;
|
|
||||||
|
|
||||||
if (EatIfPresent(lltok::kw_inbounds))
|
bool InBounds = EatIfPresent(lltok::kw_inbounds);
|
||||||
InBounds = true;
|
|
||||||
|
|
||||||
if (ParseTypeAndValue(Ptr, Loc, PFS)) return true;
|
if (ParseTypeAndValue(Ptr, Loc, PFS)) return true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user