[PATCH] D123648: Restrict lvalue-to-rvalue conversions in CGExprConstant.
    LiqinWeng via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Tue Apr 12 18:59:21 PDT 2022
    
    
  
Miss_Grape added inline comments.
================
Comment at: clang/lib/CodeGen/CGExprConstant.cpp:1096
+    case CK_LValueToRValue: {
+      // We don't really support doing lvalue-to-rvalue conversions here; any
+      // interesting conversions should be done in Evaluate().  But as a
----------------
Could you add a test case?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123648/new/
https://reviews.llvm.org/D123648
    
    
More information about the cfe-commits
mailing list