diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-10-03 08:08:25 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-10-03 08:08:25 -0700 |
commit | 8ed96f4d0ca9b8114875997f1f0196fc89a41a04 (patch) | |
tree | 7ba7ef325098e011a641ec62899b6ccbcd842c1e /include | |
parent | 97e49363c618e0984b16bfaca3c5f60a97e442b8 (diff) |
PNaCl bitcode: Reject CAST_PTRTOINT and CAST_INTTOPTR
Make the reader and writer stricter so that we can be sure we're not
accidentally generating ptrtoint or inttoptr instructions in pexe
files.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3590
TEST=toolchain trybots
Review URL: https://codereview.chromium.org/25607006
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h index ef1c89c094..3620f7f526 100644 --- a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h +++ b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h @@ -212,8 +212,8 @@ namespace naclbitc { CAST_SITOFP = 6, CAST_FPTRUNC = 7, CAST_FPEXT = 8, - CAST_PTRTOINT = 9, - CAST_INTTOPTR = 10, + // 9 was CAST_PTRTOINT; not used in PNaCl. + // 10 was CAST_INTTOPTR; not used in PNaCl. CAST_BITCAST = 11 }; |