File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ class SILModule {
363
363
// / Action to be executed for serializing the SILModule.
364
364
ActionCallback SerializeSILAction;
365
365
366
- #if NDEBUG
366
+ #ifndef NDEBUG
367
367
BasicBlockNameMapType basicBlockNames;
368
368
#endif
369
369
@@ -456,20 +456,20 @@ class SILModule {
456
456
bool isSerialized () const { return serialized; }
457
457
458
458
void setBasicBlockName (const SILBasicBlock *block, StringRef name) {
459
- # if NDEBUG
459
+ # ifndef NDEBUG
460
460
basicBlockNames[block] = name.str ();
461
- #endif
461
+ #endif
462
462
}
463
463
Optional<StringRef> getBasicBlockName (const SILBasicBlock *block) {
464
- # if NDEBUG
464
+ # ifndef NDEBUG
465
465
auto Known = basicBlockNames.find (block);
466
466
if (Known == basicBlockNames.end ())
467
467
return None;
468
468
469
469
return StringRef (Known->second );
470
- #else
470
+ #else
471
471
return None;
472
- #endif
472
+ #endif
473
473
}
474
474
475
475
// / Serialize a SIL module using the configured SerializeSILAction.
You can’t perform that action at this time.
0 commit comments