[llvm] 2d430f9 - ADT: Fix typo in static assert message from 17c584551d573f1693990773e29fbe6b4b6fa4f4

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 15:15:11 PST 2021


Author: Duncan P. N. Exon Smith
Date: 2021-01-28T15:14:46-08:00
New Revision: 2d430f902d72b8a1d3bc036a80273ca80af1e338

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

LOG: ADT: Fix typo in static assert message from 17c584551d573f1693990773e29fbe6b4b6fa4f4

Added: 
    

Modified: 
    llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp b/llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp
index 6ba02ac5c3bc..0123709dcf2e 100644
--- a/llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp
+++ b/llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp
@@ -115,7 +115,7 @@ static_assert(!std::is_convertible<IntrusiveRefCntPtr<X> &&,
               "X&& -> Z should be rejected with SFINAE");
 static_assert(!std::is_convertible<const IntrusiveRefCntPtr<X> &,
                                    IntrusiveRefCntPtr<Z>>::value,
-              "cosnt X& -> Z should be rejected with SFINAE");
+              "const X& -> Z should be rejected with SFINAE");
 static_assert(
     !std::is_convertible<std::unique_ptr<X>, IntrusiveRefCntPtr<Z>>::value,
     "X -> Z should be rejected with SFINAE");


        


More information about the llvm-commits mailing list