[PATCH] D71541: [Clang]: fix spelling mistake in assert message

Kiva via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 16 04:56:09 PST 2019


imkiva created this revision.
imkiva added reviewers: clang, pcc.
imkiva added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rC Clang

https://reviews.llvm.org/D71541

Files:
  lib/AST/VTableBuilder.cpp


Index: lib/AST/VTableBuilder.cpp
===================================================================
--- lib/AST/VTableBuilder.cpp
+++ lib/AST/VTableBuilder.cpp
@@ -487,7 +487,7 @@
 bool VCallOffsetMap::MethodsCanShareVCallOffset(const CXXMethodDecl *LHS,
                                                 const CXXMethodDecl *RHS) {
   assert(LHS->isVirtual() && "LHS must be virtual!");
-  assert(RHS->isVirtual() && "LHS must be virtual!");
+  assert(RHS->isVirtual() && "RHS must be virtual!");
 
   // A destructor can share a vcall offset with another destructor.
   if (isa<CXXDestructorDecl>(LHS))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71541.234031.patch
Type: text/x-patch
Size: 605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191216/e6db0a00/attachment.bin>


More information about the cfe-commits mailing list