aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/compile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/compile.cxx')
-rw-r--r--build2/cc/compile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index 9de037e..47953ee 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -2973,7 +2973,7 @@ namespace build2
//
if (cid == compiler_id::msvc &&
cmaj == 19 && cmin <= 11 &&
- src.is_a (*x_mod))
+ x_mod != nullptr && src.is_a (*x_mod))
{
// It's quite painful to guard the export with an #if/#endif so
// if it is present, "fixup" the (temporary) preprocessed output