From 0ba360bd68be149e556fa68bfbb82be7487c0b34 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Thu, 14 Jul 2016 21:18:06 +0000 Subject: [PATCH] Replace -mllvm -asan-use-after-scope=1 with -fsanitize-address-use-after-scope Summary: When test was added we had no -fsanitize-address-use-after-scope in clang so we had to use -mllvm -asan-use-after-scope=1. Reviewers: eugenis Subscribers: kubabrecka Differential Revision: https://reviews.llvm.org/D22382 llvm-svn: 275475 --- compiler-rt/test/asan/TestCases/use-after-scope-capture.cc | 2 +- compiler-rt/test/asan/TestCases/use-after-scope-chars.cc | 2 +- compiler-rt/test/asan/TestCases/use-after-scope-dtor-order.cc | 2 +- compiler-rt/test/asan/TestCases/use-after-scope-if.cc | 2 +- compiler-rt/test/asan/TestCases/use-after-scope-inlined.cc | 2 +- compiler-rt/test/asan/TestCases/use-after-scope-loop-bug.cc | 2 +- compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc | 2 +- compiler-rt/test/asan/TestCases/use-after-scope-loop.cc | 2 +- compiler-rt/test/asan/TestCases/use-after-scope-nobug.cc | 2 +- compiler-rt/test/asan/TestCases/use-after-scope-temp.cc | 2 +- compiler-rt/test/asan/TestCases/use-after-scope.cc | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-capture.cc b/compiler-rt/test/asan/TestCases/use-after-scope-capture.cc index 926cf13..07aab67 100644 --- a/compiler-rt/test/asan/TestCases/use-after-scope-capture.cc +++ b/compiler-rt/test/asan/TestCases/use-after-scope-capture.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -std=c++11 -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -std=c++11 -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s #include diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-chars.cc b/compiler-rt/test/asan/TestCases/use-after-scope-chars.cc index cc983a7..51fc5fa 100644 --- a/compiler-rt/test/asan/TestCases/use-after-scope-chars.cc +++ b/compiler-rt/test/asan/TestCases/use-after-scope-chars.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s // XFAIL: * diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-dtor-order.cc b/compiler-rt/test/asan/TestCases/use-after-scope-dtor-order.cc index 4b16df7..8cdfa6a 100644 --- a/compiler-rt/test/asan/TestCases/use-after-scope-dtor-order.cc +++ b/compiler-rt/test/asan/TestCases/use-after-scope-dtor-order.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s #include diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-if.cc b/compiler-rt/test/asan/TestCases/use-after-scope-if.cc index 8779161..8180077 100644 --- a/compiler-rt/test/asan/TestCases/use-after-scope-if.cc +++ b/compiler-rt/test/asan/TestCases/use-after-scope-if.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s int *p; diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-inlined.cc b/compiler-rt/test/asan/TestCases/use-after-scope-inlined.cc index 7146d90..fc8c7f7 100644 --- a/compiler-rt/test/asan/TestCases/use-after-scope-inlined.cc +++ b/compiler-rt/test/asan/TestCases/use-after-scope-inlined.cc @@ -2,7 +2,7 @@ // happens. "always_inline" is not enough, as Clang doesn't emit // llvm.lifetime intrinsics at -O0. // -// RUN: %clangxx_asan -O2 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O2 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s int *arr; diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-loop-bug.cc b/compiler-rt/test/asan/TestCases/use-after-scope-loop-bug.cc index 6d8e888..6ad9bf3 100644 --- a/compiler-rt/test/asan/TestCases/use-after-scope-loop-bug.cc +++ b/compiler-rt/test/asan/TestCases/use-after-scope-loop-bug.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s // // FIXME: @llvm.lifetime.* are not emitted for x. diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc b/compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc index a9ea450..cd71a50 100644 --- a/compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc +++ b/compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s // // FIXME: Compiler removes for-loop but keeps x variable. For unknown reason diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-loop.cc b/compiler-rt/test/asan/TestCases/use-after-scope-loop.cc index dc96239..d99761bc 100644 --- a/compiler-rt/test/asan/TestCases/use-after-scope-loop.cc +++ b/compiler-rt/test/asan/TestCases/use-after-scope-loop.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s int *p[3]; diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-nobug.cc b/compiler-rt/test/asan/TestCases/use-after-scope-nobug.cc index b7bf8ca..cf471dc 100644 --- a/compiler-rt/test/asan/TestCases/use-after-scope-nobug.cc +++ b/compiler-rt/test/asan/TestCases/use-after-scope-nobug.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && %run %t +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && %run %t #include #include diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-temp.cc b/compiler-rt/test/asan/TestCases/use-after-scope-temp.cc index b238d85..3736f91 100644 --- a/compiler-rt/test/asan/TestCases/use-after-scope-temp.cc +++ b/compiler-rt/test/asan/TestCases/use-after-scope-temp.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s // // Lifetime for temporaries is not emitted yet. diff --git a/compiler-rt/test/asan/TestCases/use-after-scope.cc b/compiler-rt/test/asan/TestCases/use-after-scope.cc index e1f7302..1aa6758 100644 --- a/compiler-rt/test/asan/TestCases/use-after-scope.cc +++ b/compiler-rt/test/asan/TestCases/use-after-scope.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s int *p = 0; -- 2.7.4