Author: Tomer Shafir
Date: 2025-11-03T16:37:22+02:00
New Revision: 8dcd02accfb2d0217372716edb2a4f325ddb7442

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

LOG: [Clang][Bytecode] Match exact void pointer deref error message (#166133)

Better match exactly rather than just a prefix.

Added: 
    

Modified: 
    clang/test/AST/ByteCode/cxx11.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/ByteCode/cxx11.cpp 
b/clang/test/AST/ByteCode/cxx11.cpp
index 427d3a106656b..e283a7b42e554 100644
--- a/clang/test/AST/ByteCode/cxx11.cpp
+++ b/clang/test/AST/ByteCode/cxx11.cpp
@@ -374,7 +374,7 @@ namespace GH150709 {
 namespace DiscardedAddrLabel {
   void foo(void) {
   L:
-    *&&L; // both-error {{indirection not permitted}} \
+    *&&L; // both-error {{indirection not permitted on operand of type 'void 
*'}} \
           // both-warning {{expression result unused}}
   }
 }


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to