Skip to content
Snippets Groups Projects
Commit 903dec2a authored by John Thompson's avatar John Thompson
Browse files

Fixed build error.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128470 91177308-0d34-0410-b5e6-96231b3b80d8
parent dde385dd
No related branches found
No related tags found
No related merge requests found
...@@ -85,8 +85,7 @@ int main(int argc, const char **argv, char * const *envp) { ...@@ -85,8 +85,7 @@ int main(int argc, const char **argv, char * const *envp) {
// (basically, exactly one input, and the operation mode is hard wired). // (basically, exactly one input, and the operation mode is hard wired).
llvm::SmallVector<const char *, 16> Args(argv, argv + argc); llvm::SmallVector<const char *, 16> Args(argv, argv + argc);
Args.push_back("-fsyntax-only"); Args.push_back("-fsyntax-only");
llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args.size(), llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args));
Args.data()));
if (!C) if (!C)
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment