diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-01 00:53:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-01 00:53:13 +0000 |
commit | f6f0bdfec336b596b095b4db8126149bbb33fec1 (patch) | |
tree | 46603bcf408196d2a2d901a98353ae013acd95ef /test/Assembler/2009-02-28-CastOpc.ll | |
parent | 884858608b0107df56e671406d280e9617988f36 (diff) |
Fix a pretty awesome bug that only happened in a strange case with anonymous
types. This was reading the uint for the keyword after the token was advanced.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/2009-02-28-CastOpc.ll')
-rw-r--r-- | test/Assembler/2009-02-28-CastOpc.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Assembler/2009-02-28-CastOpc.ll b/test/Assembler/2009-02-28-CastOpc.ll new file mode 100644 index 0000000000..ee98d41bdf --- /dev/null +++ b/test/Assembler/2009-02-28-CastOpc.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llvm-dis + +type i32 + +define void @foo() { + bitcast %0* null to i32* + ret void +} |