aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-10-18 03:27:23 +0000
committerSteve Naroff <snaroff@apple.com>2007-10-18 03:27:23 +0000
commit8569d7734906b2e3823300cc306c44720f946135 (patch)
tree4390445f7bda1c6112e44256b15012dbf0314b50 /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parent94977674587dabd56481c438bd4e934a43e8e80a (diff)
downloadllvm-8569d7734906b2e3823300cc306c44720f946135.zip
llvm-8569d7734906b2e3823300cc306c44720f946135.tar.gz
llvm-8569d7734906b2e3823300cc306c44720f946135.tar.bz2
Fix the following bug...
unsigned char asso_values[] = { 34 }; int legal2() { return asso_values[0]; } The code that creates the new constant array type was operating on the original type. As a result, the constant type being generated was "unsigned char [1][]" (which is wrong). The fix is to operate on the element type - in this case, the correct type is "unsigned char [1]" I added this case to array-init.c, which clearly didn't catch this bogosity... llvm-svn: 43112
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions