aboutsummaryrefslogtreecommitdiff
path: root/bolt
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-09-19 10:42:49 -0700
committerKazu Hirata <kazu@google.com>2022-09-19 10:42:50 -0700
commit981fa1c15cdd95669ac48b5c9caa87c1e024bbf9 (patch)
treecad9f03c7be6dbe9b901118b48916e846fdc9371 /bolt
parent7d23d1e640dcde0e90a42353102198b95e20e5f4 (diff)
downloadllvm-981fa1c15cdd95669ac48b5c9caa87c1e024bbf9.zip
llvm-981fa1c15cdd95669ac48b5c9caa87c1e024bbf9.tar.gz
llvm-981fa1c15cdd95669ac48b5c9caa87c1e024bbf9.tar.bz2
Fix unused variable warnings:
This patch fixes warnings during a release build: mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp:198:52: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture] bolt/lib/Rewrite/RewriteInstance.cpp:5318:18: error: unused variable 'HasNoAddress' [-Werror,-Wunused-variable]
Diffstat (limited to 'bolt')
-rw-r--r--bolt/lib/Rewrite/RewriteInstance.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp
index dc92268..5c2d124 100644
--- a/bolt/lib/Rewrite/RewriteInstance.cpp
+++ b/bolt/lib/Rewrite/RewriteInstance.cpp
@@ -5321,6 +5321,7 @@ void RewriteInstance::rewriteFile() {
assert(llvm::all_of(Function->getLayout().getSplitFragments(),
HasNoAddress) &&
"Some split fragments have an address while others do not");
+ (void)HasNoAddress;
continue;
}