[clang] 298d9be - Another fix for 9bb28a18d962e8f6e3fa8f48bd2c6dc183154d26

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed May 3 12:28:11 PDT 2023


Author: Aaron Ballman
Date: 2023-05-03T15:27:59-04:00
New Revision: 298d9becef655c34731512ff3d41e3fbb3fca155

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

LOG: Another fix for 9bb28a18d962e8f6e3fa8f48bd2c6dc183154d26

This addresses the issue found in:
https://lab.llvm.org/buildbot/#/builders/245/builds/7882

This time, the issue was that not every platform has the same alignment
values, so those were removed from the test case.

Added: 
    

Modified: 
    clang/test/CodeGen/nullptr.c

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGen/nullptr.c b/clang/test/CodeGen/nullptr.c
index 59ec0fd1906d..796c6414ae45 100644
--- a/clang/test/CodeGen/nullptr.c
+++ b/clang/test/CodeGen/nullptr.c
@@ -32,25 +32,25 @@ void test() {
   nullptr_func(false);
 
   // Allocation of locals
-  // CHECK: %[[bool_from_nullptr_t:.*]] = alloca i8, align 1
-  // CHECK: %[[nullptr_t_from_nullptr:.*]] = alloca ptr, align 8
-  // CHECK: %[[vp_from_nullptr_t:.*]] = alloca ptr, align 8
-  // CHECK: %[[nullptr_t_from_vp:.*]] = alloca ptr, align 8
-  // CHECK: %[[nullptr_t_from_int:.*]] = alloca ptr, align 8
+  // CHECK: %[[bool_from_nullptr_t:.*]] = alloca i8
+  // CHECK: %[[nullptr_t_from_nullptr:.*]] = alloca ptr
+  // CHECK: %[[vp_from_nullptr_t:.*]] = alloca ptr
+  // CHECK: %[[nullptr_t_from_vp:.*]] = alloca ptr
+  // CHECK: %[[nullptr_t_from_int:.*]] = alloca ptr
 
   // Initialization of locals
-  // CHECK: store i8 0, ptr %[[bool_from_nullptr_t]], align 1
-  // CHECK: store ptr null, ptr %[[nullptr_t_from_nullptr]], align 8
-  // CHECK: store ptr null, ptr %[[vp_from_nullptr_t]], align 8
-  // CHECK: store ptr null, ptr %[[nullptr_t_from_vp]], align 8
-  // CHECK: store ptr null, ptr %[[nullptr_t_from_int]], align 8
+  // CHECK: store i8 0, ptr %[[bool_from_nullptr_t]]
+  // CHECK: store ptr null, ptr %[[nullptr_t_from_nullptr]]
+  // CHECK: store ptr null, ptr %[[vp_from_nullptr_t]]
+  // CHECK: store ptr null, ptr %[[nullptr_t_from_vp]]
+  // CHECK: store ptr null, ptr %[[nullptr_t_from_int]]
 
   // Assignment expressions
-  // CHECK: store i8 0, ptr %[[bool_from_nullptr_t]], align 1
-  // CHECK: store ptr null, ptr %[[nullptr_t_from_nullptr]], align 8
-  // CHECK: store ptr null, ptr %[[vp_from_nullptr_t]], align 8
-  // CHECK: store ptr null, ptr %[[nullptr_t_from_vp]], align 8
-  // CHECK: store ptr null, ptr %[[nullptr_t_from_int]], align 8
+  // CHECK: store i8 0, ptr %[[bool_from_nullptr_t]]
+  // CHECK: store ptr null, ptr %[[nullptr_t_from_nullptr]]
+  // CHECK: store ptr null, ptr %[[vp_from_nullptr_t]]
+  // CHECK: store ptr null, ptr %[[nullptr_t_from_vp]]
+  // CHECK: store ptr null, ptr %[[nullptr_t_from_int]]
 
   // Calls
   // CHECK: call void @bool_func(i1 noundef {{zeroext?}} false)


        


More information about the cfe-commits mailing list