llvm-project/clang/test/CodeGenObjC/return-objc-object.mm
hyeongyu kim 1b1c8d83d3 [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default
Turning on `enable_noundef_analysis` flag allows better codegen by removing freeze instructions.
I modified clang by renaming `enable_noundef_analysis` flag to `disable-noundef-analysis` and turning it off by default.

Test updates are made as a separate patch: D108453

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D105169
2022-01-16 18:54:17 +09:00

20 lines
422 B
Plaintext

// RUN: %clang_cc1 -triple x86_64 -emit-llvm -o - %s | FileCheck %s
@protocol P1 @end
@interface NSOperationQueue
{
char ch[64];
double d;
}
@end
NSOperationQueue &f();
NSOperationQueue<P1> &f1();
void call_once() {
f();
f1();
}
// CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0* @_Z1fv()
// CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0* @_Z2f1v()