llvm-gcc enabled this couple of weeks ago.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105516
91177308-0d34-0410-b5e6-
96231b3b80d8
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());