]> granicus.if.org Git - clang/commitdiff
[NewPM] Add explicit triple to test
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Thu, 14 Feb 2019 04:13:00 +0000 (04:13 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Thu, 14 Feb 2019 04:13:00 +0000 (04:13 +0000)
This prevents warnings like:

> warning: overriding the module target triple with x86_64-apple-darwin

on macOS.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354008 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/asan-new-pm.ll

index 438dfdb8e3c7e5a33767ebc77a2cf31de6abb550..72bcf055a631e80cd754c80d3f997a5828437afb 100644 (file)
@@ -6,6 +6,8 @@
 ; RUN: %clang_cc1 -S -emit-llvm -o - -O1 -fexperimental-new-pass-manager -fsanitize=address -flto %s | FileCheck %s --check-prefixes=CHECK,LTO
 ; RUN: %clang_cc1 -S -emit-llvm -o - -O1 -fexperimental-new-pass-manager -fsanitize=address -flto=thin %s | FileCheck %s --check-prefixes=CHECK,THINLTO
 
+target triple = "x86_64-unknown-unknown"
+
 ; DAG-CHECK: @llvm.global_ctors = {{.*}}@asan.module_ctor
 
 define i32 @test_load(i32* %a) sanitize_address {