Fix (bitcast (fabs x)), (bitcast (fneg x)) and (bitcast (fcopysign cst,
[oota-llvm.git] / lib / CodeGen / IntrinsicLowering.cpp
index 5b895fff5c432d3b3ea269eb544e7a3913fa68e2..47a9f64e9080388f7a062902a31d6eb22e4d0af3 100644 (file)
@@ -424,6 +424,13 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
     break;
   }
     
+  case Intrinsic::get_dynamic_area_offset:
+    errs() << "WARNING: this target does not support the custom llvm.get."
+              "dynamic.area.offset.  It is being lowered to a constant 0\n";
+    // Just lower it to a constant 0 because for most targets
+    // @llvm.get.dynamic.area.offset is lowered to zero.
+    CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 0));
+    break;
   case Intrinsic::returnaddress:
   case Intrinsic::frameaddress:
     errs() << "WARNING: this target does not support the llvm."