brintos

brintos / llvm-project-archived public Read only

0
0
Text · 416 B · eb05859 Raw
20 lines · c
1// RUN: %clang_cc1 -emit-llvm %s  -o /dev/null2 3/* GCC was generating PHI nodes with an arity < #pred of the basic block the4 * PHI node lived in.  This was breaking LLVM because the number of entries5 * in a PHI node must equal the number of predecessors for a basic block.6 */7 8int trys(char *s, int x)9{10  int asa;11  double Val;12  int LLS;13  if (x) {14    asa = LLS + asa;15  } else {16  }17  return asa+(int)Val;18}19 20