Don't double-initialize cl::opt for iterating in reverse order to uncover non-determi...
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 14 Dec 2016 02:35:32 +0000 (02:35 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 14 Dec 2016 02:35:32 +0000 (02:35 +0000)
Bots are broken and needs to be fixed before having this on by default.
The feature was committed in r289619.

I tried to disable it in r289624 and failed because it was initialized in two places.

llvm-svn: 289626

llvm/lib/Support/CommandLine.cpp

index f4d501a..fa1782c 100644 (file)
@@ -52,7 +52,7 @@ namespace llvm {
 // This will help uncover differences in codegen caused due to undefined
 // iteration order.
 static cl::opt<bool, true> ReverseIteration("reverse-iterate",
-  cl::location(ReverseIterate<bool>::value), cl::init(true));
+  cl::location(ReverseIterate<bool>::value));
 }
 #endif