[llvm] c2964a5 - [SystemZ][z/OS] Address single comment in ADA patch for EmittedBytes unused in -Asserts

Yusra Syeda via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 09:04:59 PDT 2023


Author: Yusra Syeda
Date: 2023-07-06T12:01:53-04:00
New Revision: c2964a597d5dcfa0a6e2dfd092a5cd25772613ff

URL: https://github.com/llvm/llvm-project/commit/c2964a597d5dcfa0a6e2dfd092a5cd25772613ff
DIFF: https://github.com/llvm/llvm-project/commit/c2964a597d5dcfa0a6e2dfd092a5cd25772613ff.diff

LOG: [SystemZ][z/OS] Address single comment in ADA patch for EmittedBytes unused in -Asserts

Added: 
    

Modified: 
    llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
index 19e253898aa2e4..afebdd3f61490c 100644
--- a/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
@@ -969,6 +969,7 @@ void SystemZAsmPrinter::emitADASection() {
     std::tie(Sym, SlotKind) = Entry.first;
     unsigned Offset = Entry.second;
     assert(Offset == EmittedBytes && "Offset not as expected");
+    (void)EmittedBytes;
 #define EMIT_COMMENT(Str)                                                      \
   OutStreamer->AddComment(Twine("Offset ")                                     \
                               .concat(utostr(Offset))                          \


        


More information about the llvm-commits mailing list