[compiler-rt] r275475 - Replace -mllvm -asan-use-after-scope=1 with -fsanitize-address-use-after-scope
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 14 14:18:06 PDT 2016
Author: vitalybuka
Date: Thu Jul 14 16:18:06 2016
New Revision: 275475
URL: http://llvm.org/viewvc/llvm-project?rev=275475&view=rev
Log:
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
Modified:
compiler-rt/trunk/test/asan/TestCases/use-after-scope-capture.cc
compiler-rt/trunk/test/asan/TestCases/use-after-scope-chars.cc
compiler-rt/trunk/test/asan/TestCases/use-after-scope-dtor-order.cc
compiler-rt/trunk/test/asan/TestCases/use-after-scope-if.cc
compiler-rt/trunk/test/asan/TestCases/use-after-scope-inlined.cc
compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop-bug.cc
compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop-removed.cc
compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop.cc
compiler-rt/trunk/test/asan/TestCases/use-after-scope-nobug.cc
compiler-rt/trunk/test/asan/TestCases/use-after-scope-temp.cc
compiler-rt/trunk/test/asan/TestCases/use-after-scope.cc
Modified: compiler-rt/trunk/test/asan/TestCases/use-after-scope-capture.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-scope-capture.cc?rev=275475&r1=275474&r2=275475&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope-capture.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope-capture.cc Thu Jul 14 16:18:06 2016
@@ -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 <functional>
Modified: compiler-rt/trunk/test/asan/TestCases/use-after-scope-chars.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-scope-chars.cc?rev=275475&r1=275474&r2=275475&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope-chars.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope-chars.cc Thu Jul 14 16:18:06 2016
@@ -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: *
Modified: compiler-rt/trunk/test/asan/TestCases/use-after-scope-dtor-order.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-scope-dtor-order.cc?rev=275475&r1=275474&r2=275475&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope-dtor-order.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope-dtor-order.cc Thu Jul 14 16:18:06 2016
@@ -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 <stdio.h>
Modified: compiler-rt/trunk/test/asan/TestCases/use-after-scope-if.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-scope-if.cc?rev=275475&r1=275474&r2=275475&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope-if.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope-if.cc Thu Jul 14 16:18:06 2016
@@ -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;
Modified: compiler-rt/trunk/test/asan/TestCases/use-after-scope-inlined.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-scope-inlined.cc?rev=275475&r1=275474&r2=275475&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope-inlined.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope-inlined.cc Thu Jul 14 16:18:06 2016
@@ -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;
Modified: compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop-bug.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop-bug.cc?rev=275475&r1=275474&r2=275475&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop-bug.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop-bug.cc Thu Jul 14 16:18:06 2016
@@ -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.
Modified: compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop-removed.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop-removed.cc?rev=275475&r1=275474&r2=275475&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop-removed.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop-removed.cc Thu Jul 14 16:18:06 2016
@@ -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
Modified: compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop.cc?rev=275475&r1=275474&r2=275475&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope-loop.cc Thu Jul 14 16:18:06 2016
@@ -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];
Modified: compiler-rt/trunk/test/asan/TestCases/use-after-scope-nobug.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-scope-nobug.cc?rev=275475&r1=275474&r2=275475&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope-nobug.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope-nobug.cc Thu Jul 14 16:18:06 2016
@@ -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 <stdio.h>
#include <stdlib.h>
Modified: compiler-rt/trunk/test/asan/TestCases/use-after-scope-temp.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-scope-temp.cc?rev=275475&r1=275474&r2=275475&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope-temp.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope-temp.cc Thu Jul 14 16:18:06 2016
@@ -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.
Modified: compiler-rt/trunk/test/asan/TestCases/use-after-scope.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-scope.cc?rev=275475&r1=275474&r2=275475&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope.cc Thu Jul 14 16:18:06 2016
@@ -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;
More information about the llvm-commits
mailing list