diff options
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
| -rw-r--r-- | lld/ELF/LinkerScript.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index d6f406e5c28..597d3bad369 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -1427,11 +1427,9 @@ Expr ScriptParser::readPrimary() { expect("("); next(); expect(","); - uint64_t Val; - if (next().getAsInteger(0, Val)) - setError("integer expected"); + Expr E = readExpr(); expect(")"); - return [=](uint64_t Dot) { return Val; }; + return [=](uint64_t Dot) { return E(Dot); }; } if (Tok == "DATA_SEGMENT_ALIGN") { expect("("); |

