summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMeador Inge <meadori@codesourcery.com>2013-02-27 02:26:42 +0000
committerMeador Inge <meadori@codesourcery.com>2013-02-27 02:26:42 +0000
commit9b47f6414b7315f399376e90fa8a482b63efe3ee (patch)
treea99579e8cc34e606ae10433ee9aba3eabd082f4b /clang/lib/CodeGen/CodeGenModule.cpp
parenta8fbdab8501f0470da8bf414d52473749aaf8c24 (diff)
downloadbcm5719-llvm-9b47f6414b7315f399376e90fa8a482b63efe3ee.tar.gz
bcm5719-llvm-9b47f6414b7315f399376e90fa8a482b63efe3ee.zip
IR: Don't constant fold GEP bitcasts between different address spaces
PR15262 reported a bug where the following instruction: i8 getelementptr inbounds i8* bitcast ([4 x i8] addrspace(12)* @buf to i8*), i32 2 was getting folded into: addrspace(12)* getelementptr inbounds ([4 x i8] addrspace(12)* @buf, i32 0, i32 2) This caused instcombine to crash because the original instruction and the folded instruction have different types. The issue was fixed by disallowing bitcasts between different address spaces to be folded away. llvm-svn: 176156
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud