diff --git a/llvm/lib/Transforms/Obfuscation/Flattening.cpp b/llvm/lib/Transforms/Obfuscation/Flattening.cpp index 99814252be74..b40614462f1b 100644 --- a/llvm/lib/Transforms/Obfuscation/Flattening.cpp +++ b/llvm/lib/Transforms/Obfuscation/Flattening.cpp @@ -75,11 +75,7 @@ bool Flattening::flatten(Function *f) { // END OF SCRAMBLER // Lower switch -#if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 90 FunctionPass *lower = createLegacyLowerSwitchPass(); -#else - FunctionPass *lower = createLowerSwitchPass(); -#endif lower->runOnFunction(*f); // Save all original BB