llvm-uselistorder: Check the correct flag for assembly
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 28 Jul 2014 21:12:17 +0000 (21:12 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 28 Jul 2014 21:12:17 +0000 (21:12 +0000)
This is part of PR5680.

llvm-svn: 214122

llvm/tools/llvm-uselistorder/llvm-uselistorder.cpp

index 1d5a3d9..2d9bb12 100644 (file)
@@ -371,7 +371,7 @@ int main(int argc, char **argv) {
   if (!verifyBitcodeUseListOrder(*M))
     report_fatal_error("bitcode use-list order changed");
 
-  if (shouldPreserveBitcodeUseListOrder())
+  if (shouldPreserveAssemblyUseListOrder())
     if (!verifyAssemblyUseListOrder(*M))
       report_fatal_error("assembly use-list order changed");