Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Unified Diff: test/Transforms/NaCl/replace-ptrs-with-ints.ll

Issue 1085483003: PNaCl: Check we don't crash in -replace-ptrs-with-ints with odd metadata operands. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/Transforms/NaCl/replace-ptrs-with-ints.ll
diff --git a/test/Transforms/NaCl/replace-ptrs-with-ints.ll b/test/Transforms/NaCl/replace-ptrs-with-ints.ll
index 9d2974f4c7f503086f9e550a61f5598d7bada3b4..57186fb0a9f81db7c85976e51cc986a017bae10c 100644
--- a/test/Transforms/NaCl/replace-ptrs-with-ints.ll
+++ b/test/Transforms/NaCl/replace-ptrs-with-ints.ll
@@ -416,6 +416,7 @@ define void @debug_declare(i32 %val) {
define void @debug_value(i32 %val, i8* %ptr) {
tail call void @llvm.dbg.value(metadata !{i32 %val}, i64 1, metadata !1, metadata !14)
tail call void @llvm.dbg.value(metadata !{i8* %ptr}, i64 2, metadata !1, metadata !14)
+ tail call void @llvm.dbg.value(metadata !{i8* null}, i64 2, metadata !1, metadata !14)
JF 2015/04/20 23:05:44 Does this only occur for null values? Or are there
Richard Diamond 2015/04/22 14:04:57 It was found when building `rust.pexe`. I'm not s
JF 2015/04/22 17:48:29 I was thinking about undef too. Doesn't make much
ret void
}
; CHECK: define void @debug_value(i32 %val, i32 %ptr) {
« lib/Transforms/NaCl/ReplacePtrsWithInts.cpp ('K') | « lib/Transforms/NaCl/ReplacePtrsWithInts.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698