forked from OSchip/llvm-project
Fix -Wunused-variable warning introduced at r331566.
llvm-svn: 331589
This commit is contained in:
parent
49ada82fa7
commit
25c1a2f0d1
|
@ -474,7 +474,7 @@ void Writer::createLinkingSection() {
|
||||||
writeUleb128(Sub.OS, G->getGlobalIndex(), "index");
|
writeUleb128(Sub.OS, G->getGlobalIndex(), "index");
|
||||||
if (Sym->isDefined())
|
if (Sym->isDefined())
|
||||||
writeStr(Sub.OS, Sym->getName(), "sym name");
|
writeStr(Sub.OS, Sym->getName(), "sym name");
|
||||||
} else if (auto *D = dyn_cast<DataSymbol>(Sym)) {
|
} else if (isa<DataSymbol>(Sym)) {
|
||||||
writeStr(Sub.OS, Sym->getName(), "sym name");
|
writeStr(Sub.OS, Sym->getName(), "sym name");
|
||||||
if (auto *DataSym = dyn_cast<DefinedData>(Sym)) {
|
if (auto *DataSym = dyn_cast<DefinedData>(Sym)) {
|
||||||
writeUleb128(Sub.OS, DataSym->getOutputSegmentIndex(), "index");
|
writeUleb128(Sub.OS, DataSym->getOutputSegmentIndex(), "index");
|
||||||
|
|
Loading…
Reference in New Issue