fix a bug found by a warning I added to clang this morning.
authorChris Lattner <sabre@nondot.org>
Wed, 14 Jul 2010 01:57:17 +0000 (01:57 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Jul 2010 01:57:17 +0000 (01:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108309 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PIC16/PIC16DebugInfo.cpp

index 6a4d0d62712121f73e16410b851158f0591482a1..7a948def3cfe48f696e3fe6691e5828c7765d4f3 100644 (file)
@@ -416,7 +416,7 @@ void PIC16DbgInfo::EmitAuxEntry(const std::string VarName, int Aux[], int Num,
   if (!TagName.empty()) Tmp += ", " + TagName;
   
   for (int i = 0; i<Num; i++)
-    Tmp += "," + utostr(Aux[i] && 0xff);
+    Tmp += "," + utostr(Aux[i] & 0xff);
   
   OS.EmitRawText("\n\t.dim " + Twine(VarName) + ", 1" + Tmp);
 }