mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
Fix crash reported in PR7653.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
38306d53f9
commit
07538ad975
@ -2476,7 +2476,7 @@ void TargetLowering::LowerAsmOperandForConstraint(SDValue Op,
|
|||||||
int64_t Offs = GA->getOffset();
|
int64_t Offs = GA->getOffset();
|
||||||
if (C) Offs += C->getZExtValue();
|
if (C) Offs += C->getZExtValue();
|
||||||
Ops.push_back(DAG.getTargetGlobalAddress(GA->getGlobal(),
|
Ops.push_back(DAG.getTargetGlobalAddress(GA->getGlobal(),
|
||||||
C->getDebugLoc(),
|
C ? C->getDebugLoc() : DebugLoc(),
|
||||||
Op.getValueType(), Offs));
|
Op.getValueType(), Offs));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
12
test/CodeGen/X86/2010-07-15-Crash.ll
Normal file
12
test/CodeGen/X86/2010-07-15-Crash.ll
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s -o /dev/null
|
||||||
|
; PR7653
|
||||||
|
|
||||||
|
@__FUNCTION__.1623 = external constant [4 x i8] ; <[4 x i8]*> [#uses=1]
|
||||||
|
|
||||||
|
define void @foo() nounwind {
|
||||||
|
entry:
|
||||||
|
tail call void asm sideeffect "", "s,i,~{fpsr},~{flags}"(i8* getelementptr
|
||||||
|
inbounds ([4 x i8]* @__FUNCTION__.1623, i64 0, i64 0), i8* getelementptr
|
||||||
|
inbounds ([4 x i8]* @__FUNCTION__.1623, i64 0, i64 0)) nounwind
|
||||||
|
ret void
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user