зеркало из https://github.com/microsoft/clang-1.git
Fixed build error.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128470 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
dde385dd9b
Коммит
903dec2a0d
|
@ -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;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче