llvm-project
llvm-project copied to clipboard
Error in type legalising on v6m
| 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
No longer reproduces from the code here.