Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Sema/SemaDecl.cpp | ||
---|---|---|
10129 | Is the logic correct here? The if statement says !Var->isThisDeclarationADemotedDefinition(), and we then assert Var->isThisDeclarationADemotedDefinition() && getLangOpts().Modules. |
lib/Sema/SemaDecl.cpp | ||
---|---|---|
10129 | Oops, that is an old version of the patch. Uploading the new one. |
lib/Sema/SemaDecl.cpp | ||
---|---|---|
10129 | Can you just remove this assertion entirely? I don't see why it's relevant to what this code is checking. If we had some other reason to demote, the logic here would still seem to be correct. |
Is the logic correct here? The if statement says !Var->isThisDeclarationADemotedDefinition(), and we then assert Var->isThisDeclarationADemotedDefinition() && getLangOpts().Modules.