Skip to content

Commit a009a60

Browse files
committed
IR: print value numbers for unnamed function arguments
For consistency with normal instructions and clarity when reading IR, it's best to print the %0, %1, ... names of function arguments in definitions. Also modifies the parser to accept IR in that form for obvious reasons. llvm-svn: 367755
1 parent 6bf8612 commit a009a60

File tree

184 files changed

+1258
-1122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+1258
-1122
lines changed

clang/test/CXX/except/except.spec/p14-ir.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ struct X4 {
2626
struct X5 : X0, X4 { };
2727

2828
void test(X2 x2, X3 x3, X5 x5) {
29-
// CHECK: define linkonce_odr void @_ZN2X2C1ERKS_(%struct.X2* %this, %struct.X2* dereferenceable({{[0-9]+}})) unnamed_addr
29+
// CHECK: define linkonce_odr void @_ZN2X2C1ERKS_(%struct.X2* %this, %struct.X2* dereferenceable({{[0-9]+}}) %0) unnamed_addr
3030
// CHECK: call void @_ZN2X2C2ERKS_({{.*}}) [[NUW:#[0-9]+]]
3131
// CHECK-NEXT: ret void
3232
// CHECK-NEXT: }
3333
X2 x2a(x2);
34-
// CHECK: define linkonce_odr void @_ZN2X3C1ERKS_(%struct.X3* %this, %struct.X3* dereferenceable({{[0-9]+}})) unnamed_addr
34+
// CHECK: define linkonce_odr void @_ZN2X3C1ERKS_(%struct.X3* %this, %struct.X3* dereferenceable({{[0-9]+}}) %0) unnamed_addr
3535
// CHECK: call void @_ZN2X3C2ERKS_({{.*}}) [[NUW]]
3636
// CHECK-NEXT: ret void
3737
// CHECK-NEXT: }

0 commit comments

Comments
 (0)