summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-10-04 01:25:59 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-10-04 01:25:59 +0000
commit772e266fbff40a566c9ef2d805c057c4692ac028 (patch)
treebebf8ee548a80c1fdfd94c55b752d35bb752a2f8 /clang/lib/Frontend/Rewrite/RewriteObjC.cpp
parent053391fa8637bcb77dd06dc9090b1f2271d0e22f (diff)
downloadbcm5719-llvm-772e266fbff40a566c9ef2d805c057c4692ac028.tar.gz
bcm5719-llvm-772e266fbff40a566c9ef2d805c057c4692ac028.zip
Properly handle instantiation-dependent array bounds.
We previously failed to treat an array with an instantiation-dependent but not value-dependent bound as being an instantiation-dependent type. We now track the array bound expression as part of a constant array type if it's an instantiation-dependent expression. llvm-svn: 373685
Diffstat (limited to 'clang/lib/Frontend/Rewrite/RewriteObjC.cpp')
-rw-r--r--clang/lib/Frontend/Rewrite/RewriteObjC.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/Rewrite/RewriteObjC.cpp b/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
index 0fd0c7f5036..dd57976df7a 100644
--- a/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
+++ b/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
@@ -497,8 +497,8 @@ namespace {
StringLiteral *getStringLiteral(StringRef Str) {
QualType StrType = Context->getConstantArrayType(
- Context->CharTy, llvm::APInt(32, Str.size() + 1), ArrayType::Normal,
- 0);
+ Context->CharTy, llvm::APInt(32, Str.size() + 1), nullptr,
+ ArrayType::Normal, 0);
return StringLiteral::Create(*Context, Str, StringLiteral::Ascii,
/*Pascal=*/false, StrType, SourceLocation());
}
OpenPOWER on IntegriCloud