From 9667b91b13102c2e0e795cd5b167f8f452064f43 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 4 May 2017 18:03:25 +0000 Subject: 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 --- clang/test/CodeGen/thinlto_backend.ll | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/test/CodeGen/thinlto_backend.ll') 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 } -- cgit v1.2.3