aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-08-17 00:06:51 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-08-17 00:06:51 +0000
commit913da2b7b32daa5c018ec1b7422cf76c3d01649b (patch)
tree0872d885fbe74f9fe0c588083601418bb85632e8
parent3cae823f69f083c5eef19f0ea3128c48d7807c9b (diff)
downloadexternal_llvm-913da2b7b32daa5c018ec1b7422cf76c3d01649b.zip
external_llvm-913da2b7b32daa5c018ec1b7422cf76c3d01649b.tar.gz
external_llvm-913da2b7b32daa5c018ec1b7422cf76c3d01649b.tar.bz2
R600: Fix possible use of an uninitialized variable
Spotted by Nick Lewycky! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188599 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/R600/R600TextureIntrinsicsReplacer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp b/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
index b069522..37d9059 100644
--- a/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
+++ b/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
@@ -60,6 +60,7 @@ class R600TextureIntrinsicsReplacer :
switch (TextureType) {
case 0:
+ useShadowVariant = false;
return;
case TEXTURE_RECT:
case TEXTURE_1D: