[PATCH] D24954: [Driver] Disable OpenSUSE rules for OpenSUSE/SLES 10 and older
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 24 11:32:22 PDT 2016
bruno added inline comments.
================
Comment at: lib/Driver/ToolChains.cpp:3942
+ int Version;
+ if (SplitLine.first.trim() != "VERSION")
+ continue;
----------------
You can check `Line.trim() != VERSION` before the `split` as to do not try to split unnecessary lines.
https://reviews.llvm.org/D24954
More information about the cfe-commits
mailing list