parent
a220946990
commit
87dacc7922
|
@ -2528,7 +2528,7 @@ ASTDeclReader::FindExistingResult ASTDeclReader::findExisting(NamedDecl *D) {
|
|||
IEnd = IdResolver.end();
|
||||
I != IEnd; ++I) {
|
||||
if (NamedDecl *Existing = getDeclForMerging(*I, IsTypedefNameForLinkage))
|
||||
if (isSameEntity(*I, D))
|
||||
if (isSameEntity(Existing, D))
|
||||
return FindExistingResult(Reader, D, Existing);
|
||||
}
|
||||
} else if (DeclContext *MergeDC = getPrimaryContextForMerging(DC)) {
|
||||
|
|
|
@ -5,4 +5,7 @@ class MachineBasicBlock;
|
|||
template <class NodeT> class DomTreeNodeBase;
|
||||
typedef DomTreeNodeBase<MachineBasicBlock> MachineDomTreeNode;
|
||||
}
|
||||
|
||||
typedef struct {} foo_t;
|
||||
typedef foo_t foo2_t;
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#ifndef B1_H
|
||||
#define B1_H
|
||||
typedef struct {} foo_t;
|
||||
typedef foo_t foo2_t;
|
||||
#include "a2.h"
|
||||
namespace llvm {
|
||||
class MachineBasicBlock;
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
|
||||
// expected-no-diagnostics
|
||||
llvm::MachineDomTreeNode *p;
|
||||
foo2_t f2t;
|
||||
|
|
Loading…
Reference in New Issue