From 9f30fac4d88ccd30deaf8faca3e711c6346e7f33 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sun, 29 Nov 2015 03:21:30 +0000 Subject: Fix a crash when writing merged bitcode. Playing with mutateType in here was making getValueType and getType incompatible. llvm-svn: 254240 --- llvm/test/Linker/ctors.ll | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/test/Linker/ctors.ll') diff --git a/llvm/test/Linker/ctors.ll b/llvm/test/Linker/ctors.ll index 67bf4563718..208fe86402c 100644 --- a/llvm/test/Linker/ctors.ll +++ b/llvm/test/Linker/ctors.ll @@ -3,6 +3,9 @@ ; RUN: llvm-link %p/Inputs/ctors.ll %s -S -o - | \ ; RUN: FileCheck --check-prefix=ALL --check-prefix=CHECK2 %s +; Test the bitcode writer too. It used to crash. +; RUN: llvm-link %s %p/Inputs/ctors.ll -o t.bc + @v = weak global i8 0 ; CHECK1: @v = weak global i8 0 ; CHECK2: @v = weak global i8 1 -- cgit v1.2.3