[llvm-commits] lvalue VIEW_CONVERT_EXPR support

Chris Lattner clattner at apple.com
Tue Dec 19 09:29:36 PST 2006


Apparently this is needed for Ada, simple enough:

Index: llvm-convert.cpp
===================================================================
--- llvm-convert.cpp    (revision 121578)
+++ llvm-convert.cpp    (working copy)
@@ -648,6 +648,9 @@ LValue TreeToLLVM::EmitLV(tree exp) {
    case BIT_FIELD_REF: return EmitLV_BIT_FIELD_REF(exp);
    case REALPART_EXPR: return EmitLV_XXXXPART_EXPR(exp, 0);
    case IMAGPART_EXPR: return EmitLV_XXXXPART_EXPR(exp, 1);
+  case VIEW_CONVERT_EXPR:
+    // The address of a VIEW_CONVERT_EXPR is the address of its  
operand.
+    return EmitLV(TREE_OPERAND(exp, 0));
    }
}


-Chris



More information about the llvm-commits mailing list