diff options
author | Chris Lattner <sabre@nondot.org> | 2004-01-12 19:08:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-01-12 19:08:43 +0000 |
commit | b16689b647811d38ab5a5b990caed7f0014281c4 (patch) | |
tree | 096cb452a28b060dbbbf09ac6dcbb70d4dfe68a0 /lib/Bytecode | |
parent | 3edd3979e1fd5f08203a0d4e0e89adc80db337a9 (diff) | |
download | external_llvm-b16689b647811d38ab5a5b990caed7f0014281c4.zip external_llvm-b16689b647811d38ab5a5b990caed7f0014281c4.tar.gz external_llvm-b16689b647811d38ab5a5b990caed7f0014281c4.tar.bz2 |
Don't use ConstantExpr::getShift anymore
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Reader/ConstantReader.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index 3d5ffd4..660566b 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/lib/Bytecode/Reader/ConstantReader.cpp @@ -182,8 +182,6 @@ Constant *BytecodeParser::parseConstantValue(const unsigned char *&Buf, } else if (Opcode == Instruction::GetElementPtr) { // GetElementPtr std::vector<Constant*> IdxList(ArgVec.begin()+1, ArgVec.end()); return ConstantExpr::getGetElementPtr(ArgVec[0], IdxList); - } else if (Opcode == Instruction::Shl || Opcode == Instruction::Shr) { - return ConstantExpr::getShift(Opcode, ArgVec[0], ArgVec[1]); } else { // All other 2-operand expressions return ConstantExpr::get(Opcode, ArgVec[0], ArgVec[1]); } |