Skip to content

Commit 66c1f79

Browse files
committed
Revert unnecessary change
1 parent d0021ea commit 66c1f79

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clang/lib/CodeGen/CGExprConstant.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,9 +2352,6 @@ ConstantEmitter::tryEmitPrivate(const APValue &Value, QualType DestType,
23522352
EnablePtrAuthFunctionTypeDiscrimination)
23532353
.tryEmit();
23542354
case APValue::Int:
2355-
if (DestType.getPointerAuth() && Value.getInt() != 0) {
2356-
return nullptr;
2357-
}
23582355
return llvm::ConstantInt::get(CGM.getLLVMContext(), Value.getInt());
23592356
case APValue::FixedPoint:
23602357
return llvm::ConstantInt::get(CGM.getLLVMContext(),

0 commit comments

Comments
 (0)