diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-18 14:43:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-18 14:43:54 +0000 |
commit | 27e3420ce9f0d2076147e87b4181d2456fb5c9cb (patch) | |
tree | 84c76b5a24b210396166ab8865751fb229e6b284 | |
parent | 3b87167ac4f644bf0b7357d79319e20336ec3047 (diff) |
Store instructions always return void, so they never get a name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2283 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 0bcd6f1534..328c404c2f 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -123,8 +123,7 @@ static Instruction *CombineIndicies(MemAccessInst *MAI) { case Instruction::Load: return new LoadInst(Src->getOperand(0), Indices, MAI->getName()); case Instruction::Store: - return new StoreInst(MAI->getOperand(0), Src->getOperand(0), - Indices, MAI->getName()); + return new StoreInst(MAI->getOperand(0), Src->getOperand(0), Indices); default: assert(0 && "Unknown memaccessinst!"); break; |