R600: Fix possible use of an uninitialized variable
authorTom Stellard <thomas.stellard@amd.com>
Sat, 17 Aug 2013 00:06:51 +0000 (00:06 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 17 Aug 2013 00:06:51 +0000 (00:06 +0000)
Spotted by Nick Lewycky!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188599 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/R600TextureIntrinsicsReplacer.cpp

index b069522cae794410f3c6af1735ffb46d93a731ec..37d90596bd88150f74ad85d265b2930cb9617679 100644 (file)
@@ -60,6 +60,7 @@ class R600TextureIntrinsicsReplacer :
 
     switch (TextureType) {
     case 0:
+      useShadowVariant = false;
       return;
     case TEXTURE_RECT:
     case TEXTURE_1D: