aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetLowering.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 09a93f9..2a383e4 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -1174,13 +1174,15 @@ public:
/// Return true if an fneg operation is free to the point where it is never
/// worthwhile to replace it with a bitwise operation.
- virtual bool isFNegFree(EVT) const {
+ virtual bool isFNegFree(EVT VT) const {
+ assert(VT.isFloatingPoint());
return false;
}
/// Return true if an fneg operation is free to the point where it is never
/// worthwhile to replace it with a bitwise operation.
- virtual bool isFAbsFree(EVT) const {
+ virtual bool isFAbsFree(EVT VT) const {
+ assert(VT.isFloatingPoint());
return false;
}