summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2010-03-07 04:40:06 +0000
committerTanya Lattner <tonic@nondot.org>2010-03-07 04:40:06 +0000
commit47f164e15b9358b51ae65f8249d56842f8750767 (patch)
tree70f9da29134e5e089118a8c9516b93efbfdcd801
parent20df6683f1e4834c42d1c37509900d1fecddef4a (diff)
Fix indentation, use string directly instead of StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97896 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaInit.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp
index 02decf3782..a746cb7f50 100644
--- a/lib/Sema/SemaInit.cpp
+++ b/lib/Sema/SemaInit.cpp
@@ -501,16 +501,15 @@ void InitListChecker::CheckImplicitInitList(const InitializedEntity &Entity,
// Warn about missing braces.
if (T->isArrayType() || T->isRecordType()) {
- SemaRef.Diag(StructuredSubobjectInitList->getLocStart(),
- diag::warn_missing_braces)
+ SemaRef.Diag(StructuredSubobjectInitList->getLocStart(),
+ diag::warn_missing_braces)
<< StructuredSubobjectInitList->getSourceRange()
<< CodeModificationHint::CreateInsertion(
StructuredSubobjectInitList->getLocStart(),
- llvm::StringRef("{"))
+ "{")
<< CodeModificationHint::CreateInsertion(
SemaRef.PP.getLocForEndOfToken(
-StructuredSubobjectInitList->getLocEnd()),
- llvm::StringRef("}"));
+ StructuredSubobjectInitList->getLocEnd()), "}");
}
}