[llvm] r188599 - R600: Fix possible use of an uninitialized variable
Tom Stellard
thomas.stellard at amd.com
Fri Aug 16 17:06:52 PDT 2013
Author: tstellar
Date: Fri Aug 16 19:06:51 2013
New Revision: 188599
URL: http://llvm.org/viewvc/llvm-project?rev=188599&view=rev
Log:
R600: Fix possible use of an uninitialized variable
Spotted by Nick Lewycky!
Modified:
llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
Modified: llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp?rev=188599&r1=188598&r2=188599&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp (original)
+++ llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp Fri Aug 16 19:06:51 2013
@@ -60,6 +60,7 @@ class R600TextureIntrinsicsReplacer :
switch (TextureType) {
case 0:
+ useShadowVariant = false;
return;
case TEXTURE_RECT:
case TEXTURE_1D:
More information about the llvm-commits
mailing list