diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 0c97cf33f411..e8c8df5b8f35 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -379,7 +379,6 @@ void Clang::AddPreprocessingOptions(const Driver &D, // If a module path was provided, pass it along. Otherwise, use a temporary // directory. if (Arg *A = Args.getLastArg(options::OPT_fmodule_cache_path)) { - CmdArgs.push_back(A->getValue(Args)); A->claim(); A->render(Args, CmdArgs); } else {