mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Fixed build error.
llvm-svn: 128470
This commit is contained in:
@@ -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).
|
||||
llvm::SmallVector<const char *, 16> Args(argv, argv + argc);
|
||||
Args.push_back("-fsyntax-only");
|
||||
llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args.size(),
|
||||
Args.data()));
|
||||
llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(Args));
|
||||
if (!C)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user