aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index c3a5e6472e..9cacf1b000 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -719,6 +719,11 @@ unsigned ARMFastISel::ARMMaterializeGV(const GlobalValue *GV, EVT VT) {
}
unsigned ARMFastISel::TargetMaterializeConstant(const Constant *C) {
+ // @LOCALMOD-START
+ // In the sfi case we do not want to use the ARM custom cp handling.
+ // This assert should help detect some regressions early.
+ assert(!FlagSfiDisableCP && "unexpected call to TargetMaterializeConstant");
+ // @LOCALMOD-END
EVT VT = TLI.getValueType(C->getType(), true);
// Only handle simple types.