[llvm-commits] [123429] Patch for PR1173 and test/CFrontend/2007-02-04-AddrLValue.c,
clattner at apple.com
clattner at apple.com
Sun Feb 4 18:18:43 PST 2007
Revision: 123429
Author: clattner
Date: 2007-02-04 18:18:43 -0800 (Sun, 04 Feb 2007)
Log Message:
-----------
Patch for PR1173 and test/CFrontend/2007-02-04-AddrLValue.c,
patch by Anton!
Modified Paths:
--------------
apple-local/branches/llvm/gcc/llvm-convert.cpp
apple-local/branches/llvm/gcc/llvm-internal.h
Modified: apple-local/branches/llvm/gcc/llvm-convert.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-convert.cpp 2007-02-05 00:58:26 UTC (rev 123428)
+++ apple-local/branches/llvm/gcc/llvm-convert.cpp 2007-02-05 02:18:43 UTC (rev 123429)
@@ -5043,6 +5043,7 @@
case COMPONENT_REF: return EmitLV_COMPONENT_REF(exp);
case ARRAY_RANGE_REF:
case ARRAY_REF: return EmitLV_ARRAY_REF(exp);
+ case INDIRECT_REF: return EmitLV_INDIRECT_REF(exp);
}
}
@@ -5223,4 +5224,9 @@
return FieldPtr;
}
+Constant* TreeConstantToLLVM::EmitLV_INDIRECT_REF(tree exp) {
+ // The lvalue is just the address.
+ return Convert(TREE_OPERAND(exp, 0));
+}
+
/* APPLE LOCAL end LLVM (ENTIRE FILE!) */
Modified: apple-local/branches/llvm/gcc/llvm-internal.h
===================================================================
--- apple-local/branches/llvm/gcc/llvm-internal.h 2007-02-05 00:58:26 UTC (rev 123428)
+++ apple-local/branches/llvm/gcc/llvm-internal.h 2007-02-05 02:18:43 UTC (rev 123429)
@@ -513,6 +513,7 @@
static Constant *EmitLV_STRING_CST(tree_node *exp);
static Constant *EmitLV_COMPONENT_REF(tree_node *exp);
static Constant *EmitLV_ARRAY_REF(tree_node *exp);
+ static Constant *EmitLV_INDIRECT_REF(tree_node *exp);
};
#endif
More information about the llvm-commits
mailing list