projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9db306
)
[Sema] Silence unused variable warning in Release builds. NFC.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Thu, 24 Feb 2022 09:58:32 +0000
(10:58 +0100)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Thu, 24 Feb 2022 10:00:52 +0000
(11:00 +0100)
clang/lib/Sema/SemaModule.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaModule.cpp
b/clang/lib/Sema/SemaModule.cpp
index
125dbef
..
a797644
100644
(file)
--- 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");
}
}