IR: Fix -Werror noasserts build after r234255

llvm-svn: 234259
This commit is contained in:
Duncan P. N. Exon Smith 2015-04-06 23:34:41 +00:00
parent f41651ac8a
commit f6625589b3

View File

@ -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(