diff --git a/lib/IR/UseListOrder.cpp b/lib/IR/UseListOrder.cpp index 42398baaa37..c1d3561a640 100644 --- a/lib/IR/UseListOrder.cpp +++ b/lib/IR/UseListOrder.cpp @@ -170,6 +170,7 @@ bool TempFile::init(const std::string &Ext) { SmallVector Vector; DEBUG(dbgs() << " - create-temp-file\n"); if (auto EC = sys::fs::createTemporaryFile("use-list-order", Ext, Vector)) { + (void)EC; DEBUG(dbgs() << "error: " << EC.message() << "\n"); return true; }