diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-05-04 18:03:25 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-05-04 18:03:25 +0000 |
commit | 9667b91b13102c2e0e795cd5b167f8f452064f43 (patch) | |
tree | 838dc778e1166eb4cf403f93ec62a685e6662b69 /clang/test/CodeGen/thinlto_backend.ll | |
parent | 3207d30fddbace150087655f17f286e135f4d68d (diff) | |
download | bcm5719-llvm-9667b91b13102c2e0e795cd5b167f8f452064f43.tar.gz bcm5719-llvm-9667b91b13102c2e0e795cd5b167f8f452064f43.zip |
Re-apply r302108, "IR: Use pointers instead of GUIDs to represent edges in the module summary. NFCI."
with a fix for the clang backend.
llvm-svn: 302176
Diffstat (limited to 'clang/test/CodeGen/thinlto_backend.ll')
-rw-r--r-- | clang/test/CodeGen/thinlto_backend.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/thinlto_backend.ll b/clang/test/CodeGen/thinlto_backend.ll index ac0b3b76ef7..813bb62c1a2 100644 --- a/clang/test/CodeGen/thinlto_backend.ll +++ b/clang/test/CodeGen/thinlto_backend.ll @@ -35,8 +35,12 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" declare void @f2() +declare i8* @f3() define void @f1() { call void @f2() + ; Make sure that the backend can handle undefined references. + ; Do an indirect call so that the undefined ref shows up in the combined index. + call void bitcast (i8*()* @f3 to void()*)() ret void } |