diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-13 08:18:22 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-13 08:18:22 +0000 |
commit | 603d81bf8d055732b3ba24899dd9c443e1ef243b (patch) | |
tree | ddea48df7318af2c406d98e6bbeee74b066139ae /clang/test/CodeGen/volatile.c | |
parent | d8f446f1b2dbe66cfa30335b60d6217fef684811 (diff) | |
download | bcm5719-llvm-603d81bf8d055732b3ba24899dd9c443e1ef243b.tar.gz bcm5719-llvm-603d81bf8d055732b3ba24899dd9c443e1ef243b.zip |
When forming a function call or message send expression, be sure to
strip cv-qualifiers from the expression's type when the language calls
for it: in C, that's all the time, while C++ only does it for
non-class types.
Centralized the computation of the call expression type in
QualType::getCallResultType() and some helper functions in other nodes
(FunctionDecl, ObjCMethodDecl, FunctionType), and updated all relevant
callers of getResultType() to getCallResultType().
Fixes PR7598 and PR7463, along with a bunch of getResultType() call
sites that weren't stripping references off the result type (nothing
stripped cv-qualifiers properly before this change).
llvm-svn: 108234
Diffstat (limited to 'clang/test/CodeGen/volatile.c')
-rw-r--r-- | clang/test/CodeGen/volatile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGen/volatile.c b/clang/test/CodeGen/volatile.c index db87a375152..1a996defcf0 100644 --- a/clang/test/CodeGen/volatile.c +++ b/clang/test/CodeGen/volatile.c @@ -1,8 +1,8 @@ // RUN: %clang_cc1 -emit-llvm < %s -o %t -// RUN: grep volatile %t | count 29 +// RUN: grep volatile %t | count 28 // RUN: grep memcpy %t | count 7 -// The number 29 comes from the current codegen for volatile loads; +// The number 28 comes from the current codegen for volatile loads; // if this number changes, it's not necessarily something wrong, but // something has changed to affect volatile load/store codegen @@ -64,7 +64,7 @@ int main() { i=vV[3]; i=VE.yx[1]; i=vVE.zy[1]; - i = aggFct().x; + i = aggFct().x; // Note: not volatile i=vtS; |