llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.89k stars 11.93k forks source link

crash with -vectorize #14510

Closed llvmbot closed 12 years ago

llvmbot commented 12 years ago
Bugzilla Link 14138
Resolution FIXED
Resolved on Oct 23, 2012 20:53
Version trunk
OS Linux
Attachments test case
Reporter LLVM Bugzilla Contributor
CC @d0k,@hfinkel

Extended Description

clang -O2 -mllvm -vectorize pp_pack.c

crashes on the attached test case

hfinkel commented 12 years ago

r166401 should fix this.

hfinkel commented 12 years ago

This crash is being caused because calling TD->getTypeStoreSize(VTy) on <2 x i8*> returns zero. I think this is incorrect: if we have TargetData, then we should know how large a pointer is, correct?