summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2017-04-02 23:57:10 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2017-04-02 23:57:10 +0000
commit37bc9f3786dc3bfefac4ad32f107c701110e2eaf (patch)
tree137f3ae217aaae8459fb408fd1621926e7d76024 /llvm
parent00b47eec0fb07236269bab00d1a5d085b39acff3 (diff)
downloadbcm5719-llvm-37bc9f3786dc3bfefac4ad32f107c701110e2eaf.tar.gz
bcm5719-llvm-37bc9f3786dc3bfefac4ad32f107c701110e2eaf.zip
Reformat.
llvm-svn: 299343
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/SmallPtrSet.h4
-rw-r--r--llvm/include/llvm/TableGen/StringToOffsetTable.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm/include/llvm/ADT/SmallPtrSet.h b/llvm/include/llvm/ADT/SmallPtrSet.h
index b98cf6c376b..e9f822e36ce 100644
--- a/llvm/include/llvm/ADT/SmallPtrSet.h
+++ b/llvm/include/llvm/ADT/SmallPtrSet.h
@@ -167,8 +167,8 @@ protected:
const void *const *P = find_imp(Ptr);
if (P == EndPointer())
return false;
-
- const void ** Loc = const_cast<const void **>(P);
+
+ const void **Loc = const_cast<const void **>(P);
assert(*Loc == Ptr && "broken find!");
*Loc = getTombstoneMarker();
NumTombstones++;
diff --git a/llvm/include/llvm/TableGen/StringToOffsetTable.h b/llvm/include/llvm/TableGen/StringToOffsetTable.h
index e5b61ed1195..aaf2a356ffa 100644
--- a/llvm/include/llvm/TableGen/StringToOffsetTable.h
+++ b/llvm/include/llvm/TableGen/StringToOffsetTable.h
@@ -60,10 +60,10 @@ public:
if (AggregateString[i] != '\\')
continue;
- assert(i+1 < AggregateString.size() && "Incomplete escape sequence!");
- if (isdigit(AggregateString[i+1])) {
- assert(isdigit(AggregateString[i+2]) &&
- isdigit(AggregateString[i+3]) &&
+ assert(i + 1 < AggregateString.size() && "Incomplete escape sequence!");
+ if (isdigit(AggregateString[i + 1])) {
+ assert(isdigit(AggregateString[i + 2]) &&
+ isdigit(AggregateString[i + 3]) &&
"Expected 3 digit octal escape!");
O << AggregateString[++i];
O << AggregateString[++i];
OpenPOWER on IntegriCloud