aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-06-09 19:00:55 +0000
committerBill Wendling <isanbard@gmail.com>2010-06-09 19:00:55 +0000
commit5ac1d23d3d2d7a79fe520978927e9c47f65e27eb (patch)
tree477aa096689d0d417219302e02e86d748703d288 /clang/lib/Frontend/CompilerInvocation.cpp
parentae83e1f5cbfb120c20965b8d3294888d8a97a785 (diff)
downloadllvm-5ac1d23d3d2d7a79fe520978927e9c47f65e27eb.zip
llvm-5ac1d23d3d2d7a79fe520978927e9c47f65e27eb.tar.gz
llvm-5ac1d23d3d2d7a79fe520978927e9c47f65e27eb.tar.bz2
It's an error to translate this:
%reg1025 = <sext> %reg1024 ... %reg1026 = SUBREG_TO_REG 0, %reg1024, 4 into this: %reg1025 = <sext> %reg1024 ... %reg1027 = EXTRACT_SUBREG %reg1025, 4 %reg1026 = SUBREG_TO_REG 0, %reg1027, 4 The problem here is that SUBREG_TO_REG is there to assert that an implicit zext occurs. It doesn't insert a zext instruction. If we allow the EXTRACT_SUBREG here, it will give us the value after the <sext>, not the original value of %reg1024 before <sext>. llvm-svn: 105741
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions