[PATCH] D86790: [FE] Use preferred alignment instead of ABI alignment for complete object when applicable

Jason Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 08:10:07 PDT 2020


jasonliu added inline comments.


================
Comment at: clang/test/CodeGenCXX/aix-alignment.cpp:16
+// AIX64: %call = call noalias nonnull i8* @_Znam(i64 8)
+B *allocBp() { return new B[0]; }
+
----------------
I believe we would also want to add a test for the delete call to verify the change we made: 
```
void bar() {
  delete[] allocBp();
}
```


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86790/new/

https://reviews.llvm.org/D86790



More information about the cfe-commits mailing list