From b66cb703d8da47795c9bbec4899964aebbaa9d97 Mon Sep 17 00:00:00 2001 From: Haonan Yang Date: Thu, 5 May 2022 15:35:59 +0800 Subject: [PATCH] Remove out-of-dated hack Faulty code was fixed in https://github.com/llvm/llvm-project/commit/6d2b75e0887ee87e247756c4d51733616bb2f356 Signed-off-by: Haonan Yang --- common_clang.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/common_clang.cpp b/common_clang.cpp index 392a0e31..cfae18be 100644 --- a/common_clang.cpp +++ b/common_clang.cpp @@ -244,9 +244,6 @@ Compile(const char *pszProgramSource, const char **pInputHeaders, compiler->createFileManager(OverlayFS); compiler->createSourceManager(compiler->getFileManager()); - // Calling ResetAllOptionOccurrences as WA for issue from here: - // https://reviews.llvm.org/D66324?id=219733#1680231 - llvm::cl::ResetAllOptionOccurrences(); // Create compiler invocation from user args before trickering with it clang::CompilerInvocation::CreateFromArgs(compiler->getInvocation(), optionsParser.args(), *Diags);