[PATCH] D27545: Don't assert when redefining a built-in macro in a PCH, PR29119

Richard Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 7 18:19:24 PST 2016


rsmith added inline comments.


================
Comment at: lib/Lex/PPMacroExpansion.cpp:110-112
+    // FIXME: shouldIgnoreMacro() in ASTWriter also stops at macros from the
+    // predefines buffer in module builds. Do we need to splice to those here
+    // too?
----------------
If I remember correctly, we shouldn't need to; we run this step before we start lexing the predefines buffer. However, that does mean that macros on the command line will *override* macros from the PCH, which seems like it's probably the wrong behavior...


https://reviews.llvm.org/D27545





More information about the cfe-commits mailing list