cxxrtl: fix outdated comment. NFC.
authorwhitequark <whitequark@whitequark.org>
Sat, 12 Dec 2020 20:24:53 +0000 (20:24 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 13 Dec 2020 15:33:58 +0000 (15:33 +0000)
backends/cxxrtl/cxxrtl_backend.cc

index f1ed475414d7e5c2e66682b6bb11862fdf35e16f..8e51f30431c798a4d88ecc9df88e74564486d78a 100644 (file)
@@ -1157,8 +1157,8 @@ struct CxxrtlWorker {
                                }
                                // The generated code has two bounds checks; one in an assertion, and another that guards the read.
                                // This is done so that the code does not invoke undefined behavior under any conditions, but nevertheless
-                               // loudly crashes if an illegal condition is encountered. The assert may be turned off with -DNDEBUG not
-                               // just for release builds, but also to make sure the simulator (which is presumably embedded in some
+                               // loudly crashes if an illegal condition is encountered. The assert may be turned off with -DCXXRTL_NDEBUG
+                               // not only for release builds, but also to make sure the simulator (which is presumably embedded in some
                                // larger program) will never crash the code that calls into it.
                                //
                                // If assertions are disabled, out of bounds reads are defined to return zero.