[pkg-d-commits] [ldc] 14/211: Fix unused var warning. (I chose this over `(void)...`.)
Matthias Klumpp
mak at moszumanska.debian.org
Sun Apr 23 22:36:05 UTC 2017
This is an automated email from the git hooks/post-receive script.
mak pushed a commit to annotated tag v1.1.0
in repository ldc.
commit 807e94011da1fa3ece38c25b02b4adc0cec7aff2
Author: Johan Engelen <jbc.engelen at gmail.com>
Date: Thu Sep 15 21:07:28 2016 +0200
Fix unused var warning.
(I chose this over `(void)...`.)
---
gen/dibuilder.cpp | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/gen/dibuilder.cpp b/gen/dibuilder.cpp
index f75ed51..75b1065 100644
--- a/gen/dibuilder.cpp
+++ b/gen/dibuilder.cpp
@@ -1081,22 +1081,26 @@ void ldc::DIBuilder::EmitGlobalVariable(llvm::GlobalVariable *llVar,
assert(vd->isDataseg() ||
(vd->storage_class & (STCconst | STCimmutable) && vd->_init));
- auto DIVar = DBuilder.createGlobalVariable(
+#if LDC_LLVM_VER >= 400
+ auto DIVar =
+#endif
+ DBuilder.createGlobalVariable(
#if LDC_LLVM_VER >= 306
- GetCU(), // context
+ GetCU(), // context
#endif
- vd->toChars(), // name
- mangle(vd), // linkage name
- CreateFile(vd->loc), // file
- vd->loc.linnum, // line num
- CreateTypeDescription(vd->type, false), // type
- vd->protection.kind == PROTprivate, // is local to unit
+ vd->toChars(), // name
+ mangle(vd), // linkage name
+ CreateFile(vd->loc), // file
+ vd->loc.linnum, // line num
+ CreateTypeDescription(vd->type, false), // type
+ vd->protection.kind == PROTprivate, // is local to unit
#if LDC_LLVM_VER >= 400
- nullptr // relative location of field
+ nullptr // relative location of field
#else
- llVar // value
+ llVar // value
#endif
- );
+ );
+
#if LDC_LLVM_VER >= 400
llVar->addDebugInfo(DIVar);
#endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git
More information about the pkg-d-commits
mailing list