mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
IR: Fix -Werror noasserts build after r234255
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234259 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -576,10 +576,12 @@ DISubrange DIBuilder::getOrCreateSubrange(int64_t Lo, int64_t Count) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void checkGlobalVariableScope(DIDescriptor Context) {
|
static void checkGlobalVariableScope(DIDescriptor Context) {
|
||||||
|
#ifndef NDEBUG
|
||||||
if (DICompositeType CT =
|
if (DICompositeType CT =
|
||||||
dyn_cast_or_null<MDCompositeType>(getNonCompileUnitScope(Context)))
|
dyn_cast_or_null<MDCompositeType>(getNonCompileUnitScope(Context)))
|
||||||
assert(!CT.getIdentifier() &&
|
assert(!CT.getIdentifier() &&
|
||||||
"Context of a global variable should not be a type with identifier");
|
"Context of a global variable should not be a type with identifier");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
DIGlobalVariable DIBuilder::createGlobalVariable(
|
DIGlobalVariable DIBuilder::createGlobalVariable(
|
||||||
|
Reference in New Issue
Block a user