diff options
author | Chris Lattner <sabre@nondot.org> | 2011-06-20 04:01:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-06-20 04:01:35 +0000 |
commit | e64d7ba153cae6c196ece68bad4536494e97ccb6 (patch) | |
tree | ea88bec822eba15c1e58b69cf16164876a3748d8 /clang/test/CodeGenCXX/const-init.cpp | |
parent | cc19efaa97b3e1c2988042d716577831e813fdb9 (diff) | |
download | bcm5719-llvm-e64d7ba153cae6c196ece68bad4536494e97ccb6.tar.gz bcm5719-llvm-e64d7ba153cae6c196ece68bad4536494e97ccb6.zip |
Update to match mainline ConstantStruct::get API change. Also, use
ConvertType on InitListExprs as they are being converted. This is
needed for a forthcoming patch, and improves the IR generated anyway
(see additional type names in testcases).
This patch also converts a bunch of std::vector's in CGObjCMac to use
C arrays. There are a ton more that should be converted as well.
llvm-svn: 133413
Diffstat (limited to 'clang/test/CodeGenCXX/const-init.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/const-init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/const-init.cpp b/clang/test/CodeGenCXX/const-init.cpp index a8c6f304980..797d1377f69 100644 --- a/clang/test/CodeGenCXX/const-init.cpp +++ b/clang/test/CodeGenCXX/const-init.cpp @@ -10,7 +10,7 @@ void f(); void (&fr)() = f; struct S { int& a; }; -// CHECK: @s = global %0 { i32* @a } +// CHECK: @s = global %struct.S { i32* @a } S s = { a }; // PR5581 @@ -21,7 +21,7 @@ public: unsigned f; }; -// CHECK: @_ZN6PR55812g0E = global %1 { i32 1 } +// CHECK: @_ZN6PR55812g0E = global %"class.PR5581::C" { i32 1 } C g0 = { C::e1 }; } |