Android support for SafeStack.
[oota-llvm.git] / lib / CodeGen / Passes.cpp
index 7ea7b6e45ceefbba6edba4fb113644872672a7b4..114c9d11be84ab7d7fb0d1271251ed8787a5f6de 100644 (file)
@@ -466,7 +466,7 @@ void TargetPassConfig::addISelPrepare() {
 
   // Add both the safe stack and the stack protection passes: each of them will
   // only protect functions that have corresponding attributes.
-  addPass(createSafeStackPass());
+  addPass(createSafeStackPass(TM));
   addPass(createStackProtectorPass(TM));
 
   if (PrintISelInput)