Skip to content

Commit 76a037c

Browse files
committed
Rebase
Created using spr 1.3.6-beta.1
2 parents 1aa5222 + 9ece85e commit 76a037c

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

llvm/lib/IR/Constants.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,6 +2082,7 @@ ConstantPtrAuth::ConstantPtrAuth(Constant *Ptr, ConstantInt *Key,
20822082
assert(Key->getBitWidth() == 32);
20832083
assert(Disc->getBitWidth() == 64);
20842084
assert(AddrDisc->getType()->isPointerTy());
2085+
assert(DeactivationSymbol->getType()->isPointerTy());
20852086
setOperand(0, Ptr);
20862087
setOperand(1, Key);
20872088
setOperand(2, Disc);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
2+
3+
@var = global i32 0
4+
5+
; CHECK: error: constant ptrauth deactivation symbol must be a pointer
6+
@ptr = global ptr ptrauth (ptr @var, i32 0, i64 65535, ptr null, i64 0)

0 commit comments

Comments
 (0)