summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SafeStack.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-07-12 14:58:15 +0000
committerFangrui Song <maskray@google.com>2019-07-12 14:58:15 +0000
commitb251cc0d91362ea44f00a0138998a0272791f7dc (patch)
treefb2f4a2e59243cd19de79db04acf1e1e408e9661 /llvm/lib/CodeGen/SafeStack.cpp
parenta196469e67ce578df4fc9f348cc5b7221f12b239 (diff)
downloadbcm5719-llvm-b251cc0d91362ea44f00a0138998a0272791f7dc.tar.gz
bcm5719-llvm-b251cc0d91362ea44f00a0138998a0272791f7dc.zip
Delete dead stores
llvm-svn: 365903
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
-rw-r--r--llvm/lib/CodeGen/SafeStack.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SafeStack.cpp b/llvm/lib/CodeGen/SafeStack.cpp
index 6ee5df42407..a6bc7330e2c 100644
--- a/llvm/lib/CodeGen/SafeStack.cpp
+++ b/llvm/lib/CodeGen/SafeStack.cpp
@@ -587,10 +587,6 @@ Value *SafeStack::moveStaticAllocasToUnsafeStack(
IRB.SetInsertPoint(AI);
unsigned Offset = SSL.getObjectOffset(AI);
- uint64_t Size = getStaticAllocaAllocationSize(AI);
- if (Size == 0)
- Size = 1; // Don't create zero-sized stack objects.
-
replaceDbgDeclareForAlloca(AI, BasePointer, DIB, DIExpression::ApplyOffset,
-Offset);
replaceDbgValueForAlloca(AI, BasePointer, DIB, -Offset);
OpenPOWER on IntegriCloud