diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp index 3bf549e6..219527d1 100644 --- a/src/Parser/Parser.cpp +++ b/src/Parser/Parser.cpp @@ -179,8 +179,8 @@ void Parser::SetupHeader() if (!Opts->NoBuiltinIncludes) { std::vector SystemDirs = GetWindowsSystemIncludeDirs(); - for(auto Path : SystemDirs) - HSOpts.AddPath(Path, frontend::System, /*IsFramework=*/false, + for(int i = 0; i < SystemDirs.size(); i++) + HSOpts.AddPath(SystemDirs[i], frontend::System, /*IsFramework=*/false, /*IgnoreSysRoot=*/false); }