OSDN Git Service
(root)
/
android-x86
/
external-llvm-project.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3b68c0
)
[clang][NFC] Remove redundant cast
author
Raphael Isemann
<teemperor@gmail.com>
Fri, 24 Jan 2020 09:42:26 +0000
(10:42 +0100)
committer
Raphael Isemann
<teemperor@gmail.com>
Fri, 24 Jan 2020 10:07:33 +0000
(11:07 +0100)
This cast just casts Decl* to Decl*.
clang/lib/AST/ASTImporter.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/ASTImporter.cpp
b/clang/lib/AST/ASTImporter.cpp
index
9dd20e2
..
dc8d7bf
100644
(file)
--- a/
clang/lib/AST/ASTImporter.cpp
+++ b/
clang/lib/AST/ASTImporter.cpp
@@
-1753,7
+1753,7
@@
ASTNodeImporter::ImportDeclContext(DeclContext *FromDC, bool ForceImport) {
// fix since operations such as code generation will expect this to be so.
if (ImportedOrErr) {
FieldDecl *FieldFrom = dyn_cast_or_null<FieldDecl>(From);
- Decl *ImportedDecl =
(Decl*)
*ImportedOrErr;
+ Decl *ImportedDecl = *ImportedOrErr;
FieldDecl *FieldTo = dyn_cast_or_null<FieldDecl>(ImportedDecl);
if (FieldFrom && FieldTo) {
const RecordType *RecordFrom = FieldFrom->getType()->getAs<RecordType>();