This is an archive of the discontinued LLVM Phabricator instance.

Sema: Disallow taking the address of a bitfield coming from preincrement
ClosedPublic

Authored by majnemer on Jul 30 2014, 5:44 PM.

Details

Summary

Clang forgot that '++s.m' was a bitfield l-value and permit it's address
to be taken; this would crash at CodeGen-time.

Instead, propagate the object-kind when we see the prefix
increment/decrement.

Diff Detail

Repository
rL LLVM

Event Timeline

majnemer updated this revision to Diff 12051.Jul 30 2014, 5:44 PM
majnemer retitled this revision from to Sema: Disallow taking the address of a bitfield coming from preincrement.
majnemer updated this object.
majnemer added a reviewer: rsmith.
majnemer added a subscriber: Unknown Object (MLST).
rsmith accepted this revision.Jul 30 2014, 8:53 PM
rsmith edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jul 30 2014, 8:53 PM
majnemer closed this revision.Jul 30 2014, 10:01 PM
majnemer updated this revision to Diff 12057.

Closed by commit rL214386 (authored by @majnemer).