mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 14:16:12 +00:00
IR: Fix -Werror noasserts build after r234255
llvm-svn: 234259
This commit is contained in:
parent
f41651ac8a
commit
f6625589b3
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user