Revert "Silence unused variable warning in NDEBUG builds"
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Mon, 27 Mar 2023 11:33:09 +0000 (04:33 -0700)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Mon, 27 Mar 2023 12:01:53 +0000 (05:01 -0700)
This reverts commit 8c7c1f11ffaacf762e612c65440fd2cbb58ee426.

Reason: Dependent change https://reviews.llvm.org/D126959 broke the ASan
buildbots. See that phabricator review for more comments.

clang/lib/Lex/ModuleMap.cpp

index 44c8723..f2b2d0b 100644 (file)
@@ -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;