diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-10 20:04:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-10 20:04:19 +0000 |
commit | 2b37c03f8c177c8de91de63baed2e0c18d14f376 (patch) | |
tree | 1954aba8a22f12b9e39301781ad9747902646747 /test/Transforms/LevelRaise/2002-03-20-Crash.ll | |
parent | 9a66d5109e5b7efa7faf0f042bd9812c564f6139 (diff) | |
download | external_llvm-2b37c03f8c177c8de91de63baed2e0c18d14f376.zip external_llvm-2b37c03f8c177c8de91de63baed2e0c18d14f376.tar.gz external_llvm-2b37c03f8c177c8de91de63baed2e0c18d14f376.tar.bz2 |
Clean up pointer using testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LevelRaise/2002-03-20-Crash.ll')
-rw-r--r-- | test/Transforms/LevelRaise/2002-03-20-Crash.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Transforms/LevelRaise/2002-03-20-Crash.ll b/test/Transforms/LevelRaise/2002-03-20-Crash.ll index 81ba756..49fcd88 100644 --- a/test/Transforms/LevelRaise/2002-03-20-Crash.ll +++ b/test/Transforms/LevelRaise/2002-03-20-Crash.ll @@ -10,8 +10,10 @@ implementation %Village *"get_results"(%Village * %village) begin bb0: ;[#uses=1] - %cast121 = cast int 24 to %Village * ; <%Village *> [#uses=1] - %reg123 = add %Village * %village, %cast121 ; <%Village *> [#uses=1] + %cast121 = cast int 24 to ulong ; <%Village *> [#uses=1] + %A = cast %Village* %village to ulong + %reg123 = add ulong %A, %cast121 ; <%Village *> [#uses=1] + %reg123 = cast ulong %reg123 to %Village* %idx = getelementptr %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1] %reg118 = load %Village** %idx ret %Village *%reg118 |