ilovepi wrote:
Seems like LangOpts is invalid on Mac builds? I don't understand why, but that
seems to be the source of the error.
```
rocess 93144 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=1, address=0x15)
frame #0: 0x00000001045b1db0
clang++`clang::Token::isModuleContextualKeyword(this=0x0000000152957810,
LangOpts=0x0000000000000000, AllowExport=true) const at Lexer.cpp:78:7 [opt]
[inlined]
75
76 bool Token::isModuleContextualKeyword(const LangOptions &LangOpts,
77 bool AllowExport) const {
-> 78 if (!LangOpts.CPlusPlusModules)
79 return false;
80 if (AllowExport && is(tok::kw_export))
81 return true;
Target 0: (clang++) stopped.
warning: clang++ was compiled with optimization - stepping may behave oddly;
variables may not be available.
(lldb) p LangOpts.CPlusPlusModules
error: supposed to interpret, but failed: Interpreter couldn't read from memory
(lldb) p LangOpts
(const clang::LangOptions &) 0x0000000000000000
```
https://github.com/llvm/llvm-project/pull/107168
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits