[PATCH] D29963: Apply different tokenization rules to linker script expressions.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 15 07:54:01 PST 2017


grimar added inline comments.


================
Comment at: lld/ELF/ScriptLexer.cpp:187
+
+    if (E != 0) {
+      Ret.push_back(S.substr(0, E));
----------------
May be just:

```
  E = std::max(E, 1);
  Ret.push_back(S.substr(0, E));
  S = S.substr(E);
}
```


https://reviews.llvm.org/D29963





More information about the llvm-commits mailing list