We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1bb91a + 0e83389 commit f88c495Copy full SHA for f88c495
lib/IRGen/IRGenDebugInfo.cpp
@@ -2558,12 +2558,14 @@ void IRGenDebugInfoImpl::emitVariableDeclaration(
2558
AlignInBits = SizeOfByte;
2559
2560
// Sanity checks.
2561
+#ifndef NDEBUG
2562
assert(SizeInBits && "zero-sized piece");
2563
if (getSizeInBits(Var)) {
2564
assert(SizeInBits < getSizeInBits(Var) && "piece covers entire var");
2565
assert(OffsetInBits + SizeInBits <= getSizeInBits(Var) &&
2566
"pars > totum");
2567
}
2568
+#endif
2569
2570
// Add the piece DWARF expression.
2571
Operands.push_back(llvm::dwarf::DW_OP_LLVM_fragment);
0 commit comments