This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Diagnose more unkonwn DeclRefExprs
ClosedPublic

Authored by tbaeder on Jul 28 2023, 12:19 AM.

Details

Summary
Diagnose used non-const and/or extern globals.

Diff Detail

Event Timeline

tbaeder created this revision.Jul 28 2023, 12:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2023, 12:19 AM
tbaeder requested review of this revision.Jul 28 2023, 12:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2023, 12:19 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Jul 28 2023, 8:08 AM

LG aside from a nit.

clang/lib/AST/Interp/Interp.cpp
558–561

Plus reformatting.

This revision is now accepted and ready to land.Jul 28 2023, 8:08 AM
tbaeder marked an inline comment as done.Jul 29 2023, 2:33 AM
tbaeder closed this revision.Sep 15 2023, 4:19 AM

Looks like I squashed this into https://reviews.llvm.org/D156509 for some reason.