diff --git a/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll b/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll index 99c34907c00..277b4f09075 100644 --- a/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll +++ b/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll @@ -1,4 +1,5 @@ -; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep bitcast +; Ignore stderr, we expect warnings there +; RUN: llvm-as < %s 2> /dev/null | opt -instcombine | llvm-dis | not grep bitcast define void @a() { ret void diff --git a/test/Transforms/InstCombine/call.ll b/test/Transforms/InstCombine/call.ll index 9f9a2807559..df9b2a68d9d 100644 --- a/test/Transforms/InstCombine/call.ll +++ b/test/Transforms/InstCombine/call.ll @@ -1,4 +1,5 @@ -; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \ +; Ignore stderr, we expect warnings there +; RUN: llvm-as < %s 2> /dev/null | opt -instcombine | llvm-dis | \ ; RUN: grep call | notcast ; END.