projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0477045
)
IR: Fix -Werror noasserts build after r234255
author
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Mon, 6 Apr 2015 23:34:41 +0000
(23:34 +0000)
committer
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Mon, 6 Apr 2015 23:34:41 +0000
(23:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234259
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/DIBuilder.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/DIBuilder.cpp
b/lib/IR/DIBuilder.cpp
index 662b1dfe261b98bfe53a9a07c37e58a770307cb9..a6e3d3be888f5dae7c538cf955a6265d423a598e 100644
(file)
--- a/
lib/IR/DIBuilder.cpp
+++ b/
lib/IR/DIBuilder.cpp
@@
-576,10
+576,12
@@
DISubrange DIBuilder::getOrCreateSubrange(int64_t Lo, int64_t Count) {
}
static void checkGlobalVariableScope(DIDescriptor Context) {
+#ifndef NDEBUG
if (DICompositeType CT =
dyn_cast_or_null<MDCompositeType>(getNonCompileUnitScope(Context)))
assert(!CT.getIdentifier() &&
"Context of a global variable should not be a type with identifier");
+#endif
}
DIGlobalVariable DIBuilder::createGlobalVariable(