summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/FunctionImport
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-05-03 00:18:48 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-05-03 00:18:48 +0000
commite95901caa41d4836b86241fd0a8db94dde0ca557 (patch)
tree87d2517bace1f5ba9912d8287f80ec5cec81dd96 /llvm/test/Transforms/FunctionImport
parente59d06fe78fd3ec58a247b7af42b59013a61ac5e (diff)
downloadbcm5719-llvm-e95901caa41d4836b86241fd0a8db94dde0ca557.tar.gz
bcm5719-llvm-e95901caa41d4836b86241fd0a8db94dde0ca557.zip
Revert r295861, "[ModuleSummaryAnalysis] Don't crash when referencing unnamed globals."
We should always expect values to be named before running the module summary analysis (see NameAnonGlobals pass), so it's fine if we crash in that case. llvm-svn: 301991
Diffstat (limited to 'llvm/test/Transforms/FunctionImport')
-rw-r--r--llvm/test/Transforms/FunctionImport/unnamed-globals.ll10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/test/Transforms/FunctionImport/unnamed-globals.ll b/llvm/test/Transforms/FunctionImport/unnamed-globals.ll
deleted file mode 100644
index 167fad28f43..00000000000
--- a/llvm/test/Transforms/FunctionImport/unnamed-globals.ll
+++ /dev/null
@@ -1,10 +0,0 @@
-; Make sure we don't crash when referencing an unnamed global.
-; RUN: opt %s -module-summary-analysis -S
-
-@0 = external global [1 x { i64 }]
-
-define internal void @tinkywinky() {
- call void @patatino(i64 ptrtoint ([1 x { i64 }]* @0 to i64), i64 4)
- ret void
-}
-declare void @patatino(i64, i64)
OpenPOWER on IntegriCloud