diff options
Diffstat (limited to 'lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index a9b482ae2d..2158b7e028 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -693,6 +693,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. |