[llvm] ff286d7 - [llvm][NFC] Stop plenking in an assertion message

Timm Bäder via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 1 22:23:04 PDT 2023


Author: Timm Bäder
Date: 2023-07-02T07:22:08+02:00
New Revision: ff286d7178db7dfcd92724cf87dd8554213e9f23

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

LOG: [llvm][NFC] Stop plenking in an assertion message

Remove whitespace before an exclamation mark.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/PointerUnion.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/PointerUnion.h b/llvm/include/llvm/ADT/PointerUnion.h
index db0db1b5866607..7d4ed02b622626 100644
--- a/llvm/include/llvm/ADT/PointerUnion.h
+++ b/llvm/include/llvm/ADT/PointerUnion.h
@@ -231,7 +231,7 @@ template <typename... PTs> struct CastInfoPointerUnionImpl {
   }
 
   template <typename To> static To doCast(From &F) {
-    assert(isPossible<To>(F) && "cast to an incompatible type !");
+    assert(isPossible<To>(F) && "cast to an incompatible type!");
     return PointerLikeTypeTraits<To>::getFromVoidPointer(F.Val.getPointer());
   }
 };


        


More information about the llvm-commits mailing list