summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2016-07-14 21:18:06 +0000
committerVitaly Buka <vitalybuka@google.com>2016-07-14 21:18:06 +0000
commit0ba360bd68be149e556fa68bfbb82be7487c0b34 (patch)
treeb37e0a30ac99573970e322c93fcccf493b921745
parent35e0204eecb944ff879c752d8b75f8122de621ea (diff)
downloadbcm5719-llvm-0ba360bd68be149e556fa68bfbb82be7487c0b34.tar.gz
bcm5719-llvm-0ba360bd68be149e556fa68bfbb82be7487c0b34.zip
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
-rw-r--r--compiler-rt/test/asan/TestCases/use-after-scope-capture.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/use-after-scope-chars.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/use-after-scope-dtor-order.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/use-after-scope-if.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/use-after-scope-inlined.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/use-after-scope-loop-bug.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/use-after-scope-loop.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/use-after-scope-nobug.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/use-after-scope-temp.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/use-after-scope.cc2
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 926cf135b21..07aab672eec 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 <functional>
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 cc983a7cbe3..51fc5fa3874 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 4b16df7273d..8cdfa6a1cd4 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 <stdio.h>
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 8779161ee4f..8180077a0cc 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 7146d900ce6..fc8c7f7bb87 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 6d8e8887064..6ad9bf3260c 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 a9ea4505199..cd71a5046cd 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 dc96239e855..d99761bc7a8 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 b7bf8ca92d2..cf471dc345f 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 <stdio.h>
#include <stdlib.h>
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 b238d8547c6..3736f914d07 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 e1f7302f9e3..1aa6758229d 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;
OpenPOWER on IntegriCloud