File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ class IRBuilder : public IRBuilderBase {
38
38
// / ordering.
39
39
llvm::BasicBlock *ClearedIP;
40
40
41
+ #ifndef NDEBUG
41
42
// / Whether debug information is requested. Only used in assertions.
42
43
bool DebugInfo;
44
+ #endif
43
45
44
46
// Set calling convention of the call instruction using
45
47
// the same calling convention as the callee function.
@@ -54,7 +56,11 @@ class IRBuilder : public IRBuilderBase {
54
56
55
57
public:
56
58
IRBuilder (llvm::LLVMContext &Context, bool DebugInfo)
57
- : IRBuilderBase(Context), ClearedIP(nullptr ), DebugInfo(DebugInfo) {}
59
+ : IRBuilderBase(Context), ClearedIP(nullptr )
60
+ #ifndef NDEBUG
61
+ , DebugInfo(DebugInfo)
62
+ #endif
63
+ {}
58
64
59
65
// / Determines if the current location is apparently reachable. The
60
66
// / invariant we maintain is that the insertion point of the builder
You can’t perform that action at this time.
0 commit comments