Chromium Code Reviews| Index: src/IceELFObjectWriter.cpp |
| diff --git a/src/IceELFObjectWriter.cpp b/src/IceELFObjectWriter.cpp |
| index aab663caa1a7083ef35498f9554679c57f6df8ba..9761ddee17bcaa1d1ba0c3e7d213013cfa8297a6 100644 |
| --- a/src/IceELFObjectWriter.cpp |
| +++ b/src/IceELFObjectWriter.cpp |
| @@ -383,9 +383,8 @@ void ELFObjectWriter::writeDataOfType(SectionType ST, |
| for (VariableDeclaration::Initializer *Init : Var->getInitializers()) { |
| switch (Init->getKind()) { |
| case VariableDeclaration::Initializer::DataInitializerKind: { |
| - const auto Data = |
|
John
2015/06/08 21:33:16
Early in the implementation I was touching this fi
Jim Stichnoth
2015/06/08 23:45:31
Just make sure you've checked out and built the la
|
| - llvm::cast<VariableDeclaration::DataInitializer>(Init) |
| - ->getContents(); |
| + const auto Data = llvm::cast<VariableDeclaration::DataInitializer>( |
| + Init)->getContents(); |
| Section->appendData(Str, llvm::StringRef(Data.data(), Data.size())); |
| break; |
| } |