]> granicus.if.org Git - clang/commit
Don't set TUScope to null when generating a module in incremental processing mode.
authorRaphael Isemann <teemperor@gmail.com>
Tue, 18 Jul 2017 18:24:42 +0000 (18:24 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 18 Jul 2017 18:24:42 +0000 (18:24 +0000)
commite21c0578a4f55d52c54f2d71761f58cb5318565a
tree985ed5b36e9899168efb5caf9f8325e9dc5ef09d
parent8856048c38146fac48a691610b440343e2c1a669
Don't set TUScope to null when generating a module in incremental processing mode.

Summary: When in incremental processing mode, we should never set `TUScope` to a nullptr otherwise any future lookups fail. We already have similar checks in the rest of the code, but we never hit this one because so far we didn't try to generate a module from the AST that Cling generates.

Reviewers: rsmith, v.g.vassilev

Reviewed By: v.g.vassilev

Subscribers: cfe-commits, v.g.vassilev

Differential Revision: https://reviews.llvm.org/D35536

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308333 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.cpp