diff options
author | Eric Christopher <echristo@apple.com> | 2010-04-17 02:26:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-04-17 02:26:23 +0000 |
commit | 8d0c621ca600c78454da6854e78d1b60f74a0bfc (patch) | |
tree | 8eb024cea510c4bd51b58a64ab91120b0cec18d9 /clang/test/Sema/builtin-stackaddress.c | |
parent | 4e5eb5ae1bb60d411454a17395f98ff6082db666 (diff) | |
download | bcm5719-llvm-8d0c621ca600c78454da6854e78d1b60f74a0bfc.tar.gz bcm5719-llvm-8d0c621ca600c78454da6854e78d1b60f74a0bfc.zip |
Consolidate most of the integer constant expression builtin requirement
checking into a single function and use that throughout. Remove some
now unnecessary diagnostics and update tests with now more accurate
diagnostics.
llvm-svn: 101610
Diffstat (limited to 'clang/test/Sema/builtin-stackaddress.c')
-rw-r--r-- | clang/test/Sema/builtin-stackaddress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/builtin-stackaddress.c b/clang/test/Sema/builtin-stackaddress.c index 1feb57ea526..29e4e4fa6ca 100644 --- a/clang/test/Sema/builtin-stackaddress.c +++ b/clang/test/Sema/builtin-stackaddress.c @@ -4,7 +4,7 @@ return __builtin_return_address(0); } void b(unsigned x) { -return __builtin_return_address(x); // expected-error{{the level argument for a stack address builtin must be constant}} +return __builtin_return_address(x); // expected-error{{argument 0 to '__builtin_return_address' must be a constant integer}} } void* c(unsigned x) { @@ -12,5 +12,5 @@ return __builtin_frame_address(0); } void d(unsigned x) { -return __builtin_frame_address(x); // expected-error{{the level argument for a stack address builtin must be constant}} +return __builtin_frame_address(x); // expected-error{{argument 0 to '__builtin_frame_address' must be a constant integer}} } |