forked from OSchip/llvm-project
Fix C++ compliance issue. string literals must be const char *
llvm-svn: 220434
This commit is contained in:
parent
6714a0fd09
commit
34eb943fb2
|
@ -242,9 +242,9 @@ bool MSVCToolChain::getWindowsSDKLibraryPath(std::string &path) const {
|
|||
// Windows SDK 8.x installs libraries in a folder whose names depend on the
|
||||
// version of the OS you're targeting. By default choose the newest, which
|
||||
// usually corresponds to the version of the OS you've installed the SDK on.
|
||||
char *tests[] = {"winv6.3", "win8", "win7"};
|
||||
const char *tests[] = {"winv6.3", "win8", "win7"};
|
||||
bool found = false;
|
||||
for (char *test : tests) {
|
||||
for (const char *test : tests) {
|
||||
llvm::SmallString<128> testPath(libPath);
|
||||
llvm::sys::path::append(testPath, test);
|
||||
if (llvm::sys::fs::exists(testPath.c_str())) {
|
||||
|
|
Loading…
Reference in New Issue