diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2022-02-24 10:58:32 +0100 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2022-02-24 11:00:52 +0100 |
commit | fb3a2d45cd79d3573dafcb7d26df355266b0228c (patch) | |
tree | b7bfe4165deed9c3a4b49f34b61cb1fcb2169563 /clang/lib/Sema/SemaModule.cpp | |
parent | e9db306dcd53f33b982d772793ffe7326d40c018 (diff) | |
download | llvm-fb3a2d45cd79d3573dafcb7d26df355266b0228c.zip llvm-fb3a2d45cd79d3573dafcb7d26df355266b0228c.tar.gz llvm-fb3a2d45cd79d3573dafcb7d26df355266b0228c.tar.bz2 |
[Sema] Silence unused variable warning in Release builds. NFC.
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
-rw-r--r-- | clang/lib/Sema/SemaModule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaModule.cpp b/clang/lib/Sema/SemaModule.cpp index 125dbef..a797644 100644 --- a/clang/lib/Sema/SemaModule.cpp +++ b/clang/lib/Sema/SemaModule.cpp @@ -484,6 +484,7 @@ DeclResult Sema::ActOnModuleImport(SourceLocation StartLoc, } else if (getLangOpts().isCompilingModule()) { Module *ThisModule = PP.getHeaderSearchInfo().lookupModule( getLangOpts().CurrentModule, ExportLoc, false, false); + (void)ThisModule; assert(ThisModule && "was expecting a module if building one"); } @@ -526,6 +527,7 @@ void Sema::BuildModuleInclude(SourceLocation DirectiveLoc, Module *Mod) { if (getLangOpts().isCompilingModule()) { Module *ThisModule = PP.getHeaderSearchInfo().lookupModule( getLangOpts().CurrentModule, DirectiveLoc, false, false); + (void)ThisModule; assert(ThisModule && "was expecting a module if building one"); } } |