[PATCH] CodeGen: Properly null-check typeid expressions

David Majnemer david.majnemer at gmail.com
Fri Jul 18 13:13:33 PDT 2014


Hi rsmith,

Thoroughly check for a pointer dereference which yields a glvalue.  Look
through casts, comma operators, conditional operators, paren
expressions, etc.

This was originally D4416.

http://reviews.llvm.org/D4592

Files:
  lib/CodeGen/CGExprCXX.cpp
  test/CodeGenCXX/typeid-should-throw.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4592.11669.patch
Type: text/x-patch
Size: 4422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140718/2c154264/attachment.bin>


More information about the cfe-commits mailing list