[PATCH] D125272: [clang] Add -fcheck-new support

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 27 20:01:20 PDT 2023


MaskRay added inline comments.


================
Comment at: clang/test/CodeGenCXX/fcheck-new.cpp:7
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[CALL:%.*]] = call noalias noundef ptr @_Znwm(i64 noundef 4) #[[ATTR2:[0-9]+]]
+// CHECK-NEXT:    ret ptr [[CALL]]
----------------
` #[[ATTR2:[0-9]+]]` If ATTR2 is not checked, remove ` #[[ATTR2:[0-9]+]]`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125272



More information about the cfe-commits mailing list