summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-lto2/errors.ll
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2017-03-07 18:15:13 +0000
committerTeresa Johnson <tejohnson@google.com>2017-03-07 18:15:13 +0000
commita404d1436e5bd65a0e4ce20d6b09591b6f012f71 (patch)
tree0097055da9a188216feac64e17cdb57c2128f3ad /llvm/test/tools/llvm-lto2/errors.ll
parent20d3c4200d6151fc10f78e996b36ef078b4be75d (diff)
downloadbcm5719-llvm-a404d1436e5bd65a0e4ce20d6b09591b6f012f71.tar.gz
bcm5719-llvm-a404d1436e5bd65a0e4ce20d6b09591b6f012f71.zip
Fix test and add missing return for llvm-lto2 error case
Summary: This test was missing the target triple. Once I fixed that, the case with the invalid character error stopped returning 1 from llvm-lto2 and the test reported a failure. Fixed by adding the missing return from llvm-lto2. Apparently we were failing when we eventually tried to get the target. Reviewers: pcc Subscribers: mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D30585 llvm-svn: 297173
Diffstat (limited to 'llvm/test/tools/llvm-lto2/errors.ll')
-rw-r--r--llvm/test/tools/llvm-lto2/errors.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-lto2/errors.ll b/llvm/test/tools/llvm-lto2/errors.ll
index 25c05430c93..bc1f767d14f 100644
--- a/llvm/test/tools/llvm-lto2/errors.ll
+++ b/llvm/test/tools/llvm-lto2/errors.ll
@@ -10,5 +10,6 @@
; ERR4: invalid resolution: foo
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
@foo = global i32 0
OpenPOWER on IntegriCloud