llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Error in type legalising on v6m

Open DMG862 opened this issue 8 years ago • 1 comments

Bugzilla Link 36559
Resolution FIXED
Resolved on Mar 04, 2019 11:59
Version trunk
OS Linux
CC @deadalnix

Extended Description

This code:

char a[] = {1, 1, 1}; char b = 1; int c; static int d; e() { char *f = &a[2]; char *g = &b; char **h = c; if (g != (*h = f)) d = 70; } i() { fn3(d); }

Compiled like this: clang --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c test.c -O3 -c

Gives me this: Operand not processed? t21: ch = br t23, BasicBlock:ch<if.then 0x82b168>

UNREACHABLE executed at ../lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:476!

Bisecting led to this commit: https://reviews.llvm.org/rL325892

DMG862 avatar Mar 01 '18 13:03 DMG862

No longer reproduces from the code here.

DMG862 avatar Mar 04 '19 19:03 DMG862