mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Fix some compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ff9563c3e
commit
71d3500005
@ -83,11 +83,11 @@ int main(int argc, char **argv) {
|
||||
std::auto_ptr<Module> M;
|
||||
OwningPtr<MemoryBuffer> BufferPtr;
|
||||
|
||||
if (ec = MemoryBuffer::getFileOrSTDIN(InputFilename, BufferPtr))
|
||||
if ((ec = MemoryBuffer::getFileOrSTDIN(InputFilename, BufferPtr)))
|
||||
ErrorMessage = ec.message();
|
||||
else
|
||||
M.reset(ParseBitcodeFile(BufferPtr.get(), Context, &ErrorMessage));
|
||||
MemoryBuffer *Buffer = BufferPtr.take();
|
||||
(void) BufferPtr.take();
|
||||
|
||||
if (M.get() == 0) {
|
||||
errs() << argv[0] << ": ";
|
||||
|
Loading…
Reference in New Issue
Block a user