Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. The w2ll will crash if compile the code like that: ``` int sre_random(void) { long rnd1; static long tbl[64]; int i; for (i = 0; i < 64; i++) { tbl[i] = rnd1; if (tbl[i] < 0) tbl[i] += 0; } return 0; } ``` 2. Error Log: ``` w2ll: /workspace/toolchain/llvm/llvm/lib/IR/Globals.cpp:472: void llvm::GlobalVariable::setInitializer(llvm::Constant*): Assertion `InitVal->getType() == getValueType() && "Initializer type must match GlobalVariable type"' failed. (xcalcc:571) ``` Signed-off-by: Zhijin Zeng <[email protected]>
- Loading branch information