Summary This option can be used to reduce the size of the binary. The trade-off in this case would be the run-time performance. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D105726
13 lines
458 B
C++
13 lines
458 B
C++
// RUN: %clang -S -fsanitize=address -emit-llvm -o - -fsanitize=address %s \
|
|
// RUN: | FileCheck %s --check-prefixes=CHECK-NO-OUTLINE
|
|
// RUN: %clang -S -fsanitize=address -emit-llvm -o - -fsanitize=address %s \
|
|
// RUN: -fsanitize-address-outline-instrumentation \
|
|
// RUN: | FileCheck %s --check-prefixes=CHECK-OUTLINE
|
|
|
|
// CHECK-NO-OUTLINE-NOT: call{{.*}}@__asan_load4
|
|
// CHECK-OUTLINE: call{{.*}}@__asan_load4
|
|
|
|
int deref(int *p) {
|
|
return *p;
|
|
}
|