[PATCH] D24954: [ToolChains] Disable OpenSUSE rules for SLES10
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 10 11:45:14 PDT 2016
bruno added a reviewer: bruno.
bruno added inline comments.
================
Comment at: lib/Driver/ToolChains.cpp:3915
- if (D.getVFS().exists("/etc/SuSE-release"))
- return OpenSUSE;
+ File = llvm::MemoryBuffer::getFile("/etc/SuSE-release");
+ if (File)
----------------
You should keep using the VFS to obtain the file. You probably also want to add a comment here to describe what you mentioned in the patch Summary.
https://reviews.llvm.org/D24954
More information about the cfe-commits
mailing list