nickdesaulniers added a comment.

In D156185#4533083 <https://reviews.llvm.org/D156185#4533083>, @efriedma wrote:

> No, that's taking the address of a string literal lvalue.

ah! sorry, yeah
`const char* foo = "foo";`
vs
`char foo[100000] = "x";`

That AST looks like:

  `-VarDecl 0x55eaf6075ba8 <x.c:1:1, col:20> col:6 foo 'char[100000]' cinit
    `-StringLiteral 0x55eaf6075c98 <col:20> 'char[100000]' "x"

That case is handled today by the fast path today.  The case //I// refer to 
which is 1000% more common is not, hence this patch. WDYT?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156185/new/

https://reviews.llvm.org/D156185

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to