summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-06-05 01:14:40 +0000
committerDevang Patel <dpatel@apple.com>2010-06-05 01:14:40 +0000
commit6ccba0fb6e56f86572a7f893e5fb4e4d6b5d2e50 (patch)
tree447d5fa5387de9156c5ea1a34f16b558d04e06b1 /clang/lib/CodeGen/CGDebugInfo.cpp
parent81ef35b3cae3230b50fb3bf2c3d73f2fdb2fda40 (diff)
downloadbcm5719-llvm-6ccba0fb6e56f86572a7f893e5fb4e4d6b5d2e50.tar.gz
bcm5719-llvm-6ccba0fb6e56f86572a7f893e5fb4e4d6b5d2e50.zip
Preserve type info for local variables in optimized builds.
llvm-gcc enabled this couple of weeks ago. llvm-svn: 105516
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index c9bcb1b7e04..6025e09e7a2 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1477,7 +1477,7 @@ void CGDebugInfo::EmitDeclare(const VarDecl *VD, unsigned Tag,
llvm::DIVariable D =
DebugFactory.CreateVariable(Tag, llvm::DIDescriptor(RegionStack.back()),
VD->getName(),
- Unit, Line, Ty);
+ Unit, Line, Ty, CGM.getLangOptions().Optimize);
// Insert an llvm.dbg.declare into the current block.
llvm::Instruction *Call =
DebugFactory.InsertDeclare(Storage, D, Builder.GetInsertBlock());
OpenPOWER on IntegriCloud