forked from OSchip/llvm-project
metadata can't be a global var initializer.
llvm-svn: 92330
This commit is contained in:
parent
bddea6a530
commit
01635a8428
|
@ -605,10 +605,6 @@ void SlotTracker::processModule() {
|
||||||
E = TheModule->global_end(); I != E; ++I) {
|
E = TheModule->global_end(); I != E; ++I) {
|
||||||
if (!I->hasName())
|
if (!I->hasName())
|
||||||
CreateModuleSlot(I);
|
CreateModuleSlot(I);
|
||||||
if (I->hasInitializer()) {
|
|
||||||
if (MDNode *N = dyn_cast<MDNode>(I->getInitializer()))
|
|
||||||
CreateMetadataSlot(N);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add metadata used by named metadata.
|
// Add metadata used by named metadata.
|
||||||
|
|
Loading…
Reference in New Issue