[clang] bd59d17 - [clang][Interp][NFC] Fix some doc comment confusion

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 6 05:52:34 PDT 2023


Author: Timm Bäder
Date: 2023-07-06T14:52:05+02:00
New Revision: bd59d17e71f8c58f25fdba7f614cb0449c38d628

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

LOG: [clang][Interp][NFC] Fix some doc comment confusion

These are supposed to be regular comments.

Added: 
    

Modified: 
    clang/lib/AST/Interp/ByteCodeEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/ByteCodeEmitter.cpp b/clang/lib/AST/Interp/ByteCodeEmitter.cpp
index 3533559ac3ca4b..1a5b683a3b6955 100644
--- a/clang/lib/AST/Interp/ByteCodeEmitter.cpp
+++ b/clang/lib/AST/Interp/ByteCodeEmitter.cpp
@@ -131,7 +131,7 @@ void ByteCodeEmitter::emitLabel(LabelTy Label) {
     for (unsigned Reloc : It->second) {
       using namespace llvm::support;
 
-      /// Rewrite the operand of all jumps to this label.
+      // Rewrite the operand of all jumps to this label.
       void *Location = Code.data() + Reloc - align(sizeof(int32_t));
       assert(aligned(Location));
       const int32_t Offset = Target - static_cast<int64_t>(Reloc);
@@ -199,14 +199,14 @@ template <typename... Tys>
 bool ByteCodeEmitter::emitOp(Opcode Op, const Tys &... Args, const SourceInfo &SI) {
   bool Success = true;
 
-  /// The opcode is followed by arguments. The source info is
-  /// attached to the address after the opcode.
+  // The opcode is followed by arguments. The source info is
+  // attached to the address after the opcode.
   emit(P, Code, Op, Success);
   if (SI)
     SrcMap.emplace_back(Code.size(), SI);
 
-  /// The initializer list forces the expression to be evaluated
-  /// for each argument in the variadic template, in order.
+  // The initializer list forces the expression to be evaluated
+  // for each argument in the variadic template, in order.
   (void)std::initializer_list<int>{(emit(P, Code, Args, Success), 0)...};
 
   return Success;


        


More information about the cfe-commits mailing list