From: Mitch Phillips <31459023+hctim@users.noreply.github.com> Date: Mon, 27 Mar 2023 11:33:09 +0000 (-0700) Subject: Revert "Silence unused variable warning in NDEBUG builds" X-Git-Tag: upstream/17.0.6~13597 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ca710ab148b0815c2b7b03fe2af643e637bbc7d;p=platform%2Fupstream%2Fllvm.git Revert "Silence unused variable warning in NDEBUG builds" This reverts commit 8c7c1f11ffaacf762e612c65440fd2cbb58ee426. Reason: Dependent change https://reviews.llvm.org/D126959 broke the ASan buildbots. See that phabricator review for more comments. --- diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index 44c8723..f2b2d0b 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -936,7 +936,6 @@ Module *ModuleMap::createModuleForImplementationUnit(SourceLocation Loc, // Mark the main source file as being within the newly-created module so that // declarations and macros are properly visibility-restricted to it. auto *MainFile = SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()); - (void)MainFile; assert(MainFile && "no input file for module implementation"); return Result;