Skip to content

Commit

Permalink
IR: Fix -Werror noasserts build after r234255
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234259 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dexonsmith committed Apr 6, 2015
1 parent 0477045 commit 4a4ba5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/IR/DIBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4a4ba5c

Please sign in to comment.