[clang] 477f5f4 - [RISCV][Clang] Fix RISCV vector header comment.

Ben Shi via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 12 03:26:37 PDT 2021


Author: jacquesguan
Date: 2021-10-12T10:26:25Z
New Revision: 477f5f4fca2b1d994045a0cb821ffb3873519243

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

LOG: [RISCV][Clang] Fix RISCV vector header comment.

Reviewed By: khchen

Differential Revision: https://reviews.llvm.org/D111597

Added: 
    

Modified: 
    clang/utils/TableGen/RISCVVEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/utils/TableGen/RISCVVEmitter.cpp b/clang/utils/TableGen/RISCVVEmitter.cpp
index 1f52c452e6e10..3611df145442a 100644
--- a/clang/utils/TableGen/RISCVVEmitter.cpp
+++ b/clang/utils/TableGen/RISCVVEmitter.cpp
@@ -1019,7 +1019,7 @@ void RVVEmitter::createHeader(raw_ostream &OS) {
 
   OS << "\n#ifdef __cplusplus\n";
   OS << "}\n";
-  OS << "#endif // __riscv_vector\n";
+  OS << "#endif // __cplusplus\n";
   OS << "#endif // __RISCV_VECTOR_H\n";
 }
 


        


More information about the cfe-commits mailing list