================
Comment at: lib/Sema/SemaInit.cpp:3402
@@ +3401,3 @@
+    // Force a load so we can materialize a temporary.
+    Sequence.AddLValueToRValueStep(cv1T1.getUnqualifiedType());
+    return VK_RValue;
----------------
Doug Gregor wrote:
> Might we need a qualification conversion step after this?
I saw that the first time around, but it looks like rvalues are never qualified:

```const int &ref = 1;```



```VarDecl [...] ref 'const int &'
|-MaterializeTemporaryExpr [...] 'const int' lvalue
  |-IntegerLiteral [...] 'int' 1```



http://llvm-reviews.chandlerc.com/D651
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to