summaryrefslogtreecommitdiff
path: root/include/clang/Sema/Sema.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-04-30 21:23:01 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-04-30 21:23:01 +0000
commit9b1317531d376738fd6631291b0a04109c76a63b (patch)
tree7ad9189e14f6588a784230d2278ea9399f91c8e3 /include/clang/Sema/Sema.h
parent3d2f000df9311bfccb6d2ac350be3d3efa5a412b (diff)
downloadclang-9b1317531d376738fd6631291b0a04109c76a63b.tar.gz
clang-9b1317531d376738fd6631291b0a04109c76a63b.tar.bz2
clang-9b1317531d376738fd6631291b0a04109c76a63b.tar.xz
When deducing an 'auto' type, don't modify the type-as-written.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/Sema.h')
-rw-r--r--include/clang/Sema/Sema.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h
index f4c2c4c35c..e5f2d448fd 100644
--- a/include/clang/Sema/Sema.h
+++ b/include/clang/Sema/Sema.h
@@ -5643,7 +5643,7 @@ public:
};
DeduceAutoResult DeduceAutoType(TypeSourceInfo *AutoType, Expr *&Initializer,
- TypeSourceInfo *&Result);
+ QualType &Result);
QualType SubstAutoType(QualType TypeWithAuto, QualType Replacement);
void DiagnoseAutoDeductionFailure(VarDecl *VDecl, Expr *Init);